echo "Using conditional statement to create a project directory and project"

# Variable section
export project_dir=$HOME/vscode  # change vscode to different name to test git clone
export project=$project_dir/APCSP  # change APCSP to name of project from git clone
export project_repo="https://github.com/nighthawkcoders/APCSP.git"  # change to project of choice

cd ~    # start in home directory

# Conditional block to make a project directory
if [ ! -d $project_dir ]
then 
    echo "Directory $project_dir does not exists... makinng directory $project_dir"
    mkdir -p $project_dir
fi
echo "Directory $project_dir exists." 

# Conditional block to git clone a project from project_repo
if [ ! -d $project ]
then
    echo "Directory $project does not exists... cloning $project_repo"
    cd $project_dir
    git clone $project_repo
    cd ~
fi
echo "Directory $project exists."
Using conditional statement to create a project directory and project
Directory /Users/jesa/vscode exists.
Directory /Users/jesa/vscode/APCSP exists.
echo "Navigate to project, then navigate to area wwhere files were cloned"
cd $project
pwd

echo ""
echo "list top level or root of files with project pulled from github"
ls

echo ""
echo "list again with hidden files pulled from github"
ls -a   # hidden files flag, many shell commands have flags

echo ""
echo "list all files in long format"
ls -al   # all files and long listing
Navigate to project, then navigate to area wwhere files were cloned
/Users/jesa/vscode/APCSP

list top level or root of files with project pulled from github
Gemfile			_includes		_word
LICENSE			_layouts		assets
Makefile		_notebooks		docker-compose.yml
README.md		_pages			images
_action_files		_plugins		index.html
_config.yml		_posts			python
_fastpages_docs		_sass

list again with hidden files pulled from github
.			Makefile		_posts
..			README.md		_sass
.devcontainer.json	_action_files		_word
.git			_config.yml		assets
.gitattributes		_fastpages_docs		docker-compose.yml
.github			_includes		images
.gitignore		_layouts		index.html
.vscode			_notebooks		python
Gemfile			_pages
LICENSE			_plugins

list all files in long format
total 96
drwxr-xr-x  28 jesa  staff    896 Aug 22 17:29 .
drwxr-xr-x   5 jesa  staff    160 Aug 22 13:16 ..
-rw-r--r--   1 jesa  staff    420 Aug 21 18:32 .devcontainer.json
drwxr-xr-x  15 jesa  staff    480 Aug 25 13:47 .git
-rw-r--r--   1 jesa  staff     84 Aug 21 18:32 .gitattributes
drwxr-xr-x   4 jesa  staff    128 Aug 21 18:32 .github
-rw-r--r--   1 jesa  staff    917 Aug 21 18:32 .gitignore
drwxr-xr-x   3 jesa  staff     96 Aug 21 18:32 .vscode
-rwxr-xr-x   1 jesa  staff   1304 Aug 21 18:32 Gemfile
-rw-r--r--   1 jesa  staff  11351 Aug 21 18:32 LICENSE
-rwxr-xr-x   1 jesa  staff   1422 Aug 21 18:32 Makefile
-rwxr-xr-x   1 jesa  staff   3708 Aug 22 17:29 README.md
drwxr-xr-x  18 jesa  staff    576 Aug 21 18:32 _action_files
-rw-r--r--   1 jesa  staff   3716 Aug 21 18:32 _config.yml
drwxr-xr-x  24 jesa  staff    768 Aug 21 18:32 _fastpages_docs
drwxr-xr-x  29 jesa  staff    928 Aug 21 18:32 _includes
drwxr-xr-x   6 jesa  staff    192 Aug 21 18:32 _layouts
drwxr-xr-x  15 jesa  staff    480 Aug 25 13:35 _notebooks
drwxr-xr-x   9 jesa  staff    288 Aug 21 18:32 _pages
drwxr-xr-x   4 jesa  staff    128 Aug 21 18:32 _plugins
drwxr-xr-x  33 jesa  staff   1056 Aug 22 17:29 _posts
drwxr-xr-x   3 jesa  staff     96 Aug 21 18:32 _sass
drwxr-xr-x   3 jesa  staff     96 Aug 21 18:32 _word
drwxr-xr-x   4 jesa  staff    128 Aug 21 18:32 assets
-rwxr-xr-x   1 jesa  staff   1136 Aug 21 18:32 docker-compose.yml
drwxr-xr-x  52 jesa  staff   1664 Aug 21 18:32 images
-rw-r--r--   1 jesa  staff    565 Aug 21 20:33 index.html
drwxr-xr-x   3 jesa  staff     96 Aug 21 18:32 python
echo "Look for posts"
export posts=$project/_posts  # _posts inside project
cd $posts  # this should exist per fastpages
pwd  # present working directory
ls -l  # list posts
Look for posts
/Users/jesa/vscode/APCSP/_posts
total 480
-rw-r--r--  1 jesa  staff  21306 Aug 21 18:32 2022-06-01-TT160-deploy.md
-rw-r--r--  1 jesa  staff   5861 Aug 21 18:32 2022-07-07-PBL-binary.md
-rw-r--r--  1 jesa  staff   3085 Aug 21 18:32 2022-07-08-PBL-grade_calc.md
-rw-r--r--  1 jesa  staff   3698 Aug 21 18:32 2022-07-08-PBL-graph.md
-rw-r--r--  1 jesa  staff   5729 Aug 21 18:32 2022-07-08-PBL-life.md
-rw-r--r--  1 jesa  staff  14387 Aug 21 18:32 2022-07-08-PBL-snake.md
-rw-r--r--  1 jesa  staff    334 Aug 21 18:32 2022-07-10-PBL-database.md
-rw-r--r--  1 jesa  staff   2908 Aug 21 18:32 2022-07-10-PBL-jokes.md
-rw-r--r--  1 jesa  staff   4046 Aug 21 18:32 2022-07-10-PBL-rapidapi.md
-rw-r--r--  1 jesa  staff   6685 Aug 21 18:32 2022-07-19-PBL-calculator.md
-rw-r--r--  1 jesa  staff  23325 Aug 21 18:32 2022-07-25-CSP-workshop.md
-rw-r--r--  1 jesa  staff   2333 Aug 21 18:32 2022-08-15-TP000-student_score_history.md
-rw-r--r--  1 jesa  staff   4363 Aug 21 18:32 2022-08-15-TP100-pseudo_code.md
-rw-r--r--  1 jesa  staff   7968 Aug 21 18:32 2022-08-15-TR100-tool_setup.md
-rw-r--r--  1 jesa  staff  15026 Aug 21 18:32 2022-08-15-TT100-tools.md
-rw-r--r--  1 jesa  staff   5590 Aug 21 18:32 2022-08-15-TT101-vscode-wsl.md
-rw-r--r--  1 jesa  staff   2066 Aug 21 18:32 2022-08-22-TR110-intro_python.md
-rw-r--r--  1 jesa  staff   5173 Aug 21 18:32 2022-08-22-TT110-fastpages.md
-rw-r--r--  1 jesa  staff   2635 Aug 21 18:32 2022-08-22-TT110-focus.md
-rw-r--r--  1 jesa  staff    749 Aug 22 17:29 2022-08-22-first-markdown-post.md
-rw-r--r--  1 jesa  staff   2737 Aug 21 18:32 2022-08-29-TR120-data_abstract.md
-rw-r--r--  1 jesa  staff  10683 Aug 21 18:32 2022-08-29-TT120-agile.md
-rw-r--r--  1 jesa  staff   4498 Aug 21 18:32 2022-08-29-TT120-html_fragments.md
-rw-r--r--  1 jesa  staff   9037 Aug 21 18:32 2022-09-05-TP130-create_performance_task.md
-rw-r--r--  1 jesa  staff   7753 Aug 21 18:32 2022-09-05-TP131-create-task-bria.md
-rw-r--r--  1 jesa  staff   8066 Aug 21 18:32 2022-09-05-TR130-creative_development.md
-rw-r--r--  1 jesa  staff   3520 Aug 21 18:32 2022-09-05-TT130-applab.md
-rw-r--r--  1 jesa  staff    720 Aug 21 18:32 README.md
-rw-r--r--  1 jesa  staff   1423 Aug 22 17:29 UseofJupyter.ipynb
-rw-r--r--  1 jesa  staff   1423 Aug 21 21:25 UseofMarkdown.ipynb
-rw-r--r--  1 jesa  staff      0 Aug 22 17:29 d
echo "Look for notebooks"
export notebooks=$project/_notebooks  # _notebooks is inside project
cd $notebooks   # this should exist per fastpages
pwd  # present working directory
ls -l  # list notebooks
Look for notebooks
/Users/jesa/vscode/APCSP/_notebooks
total 216
-rw-r--r--  1 jesa  staff  14260 Aug 22 17:29 2022-06-01-TT150-webapi_tutorial.ipynb
-rw-r--r--  1 jesa  staff   9574 Aug 21 18:32 2022-06-01-TT160-bash_tutorial.ipynb
-rw-r--r--  1 jesa  staff   8653 Aug 21 18:32 2022-07-21-PBL-neo4j_intro.ipynb
-rw-r--r--  1 jesa  staff  13509 Aug 21 18:32 2022-08-21-anthony_and_sahil.ipynb
-rw-r--r--  1 jesa  staff    513 Aug 22 17:29 2022-08-21.ipynb
-rw-r--r--  1 jesa  staff  11749 Aug 21 18:32 2022-08-22-TP110-python_hello.ipynb
-rw-r--r--  1 jesa  staff      0 Aug 25 13:35 2022-08-25HellotoPython.ipynb
-rw-r--r--  1 jesa  staff  10141 Aug 21 18:32 2022-08-29-TP120-python_lists.ipynb
-rw-r--r--  1 jesa  staff  12632 Aug 21 18:32 2022-09-05-TT130-js_tutorial.ipynb
-rw-r--r--  1 jesa  staff      0 Aug 22 17:29 Hacks.ipynb
-rw-r--r--  1 jesa  staff    771 Aug 21 18:32 README.md
drwxr-xr-x  3 jesa  staff     96 Aug 21 18:32 images
-rw-r--r--  1 jesa  staff   2063 Aug 22 13:11 jesavscode.ipynb
echo "Look for images in notebooks, print working directory, list files"
cd $notebooks/images  # this should exist per fastpages
pwd
ls -l
Look for images in notebooks, print working directory, list files
/Users/jesa/vscode/APCSP/_notebooks/images
total 200
-rw-r--r--  1 jesa  staff  101617 Aug 21 18:32 kernels.png
echo "Navigate to project, then navigate to area wwhere files were cloned"

cd $project
echo "show the contents of README.md"
echo ""

cat README.md  # show contents of file, in this case markdown
echo ""
echo "end of README.md"
Navigate to project, then navigate to area wwhere files were cloned
show the contents of README.md

[//]: # (This template replaces README.md when someone creates a new repo with the fastpages template.)

![](https://github.com/nighthawkcoders/APCSP/workflows/CI/badge.svg) 
![](https://github.com/nighthawkcoders/APCSP/workflows/GH-Pages%20Status/badge.svg) 
[![](https://img.shields.io/static/v1?label=fastai&message=fastpages&color=57aeac&labelColor=black&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAjCAYAAABhCKGoAAAGMklEQVR42q1Xa0xTVxyfKExlui9blszoB12yDzPGzJhtyT5s+zBxUxELBQSHm2ZzU5epBF/LclXae29pCxR5VEGgLQUuIOKDuClhm8oUK7S9ve19tLTl/fA5p9MNc/Y/hRYEzGLxJL/87zk9Ob/zf5++NGHMALzYgdDYmWh0Qly3Lybtwi6lXdpN2cWN5A0+hrQKe5R2PoN2uD+OKcn/UF5ZsVduMmyXVRi+jzebdmI5/juhwrgj3mTI2GA0vvsUIcMwM7GkOD42t7Mf6bqHkFry2yk7X5PXcxMVDN5DGtFf9NkJfe6W5iaUyFShjfV1KPlk7VPAa0k11WjzL+eRvMJ4IKQO0dw8SydJL+Op0u5cn+3tQTn+fqTivTbQpiavF0iG7iGt6NevKjpKpTbUo3hj+QO47XB8hfHfIGAelA+T6mqQzFi+e0oTKm3iexQnXaU56ZrK5SlVsq70LMF7TuX0XNTyvi1rThzLST3TgOCgxwD0DPwDGoE07QkcSl/m5ynbHWmZVm6b0sp9o2DZN8aTZtqk9w9b2G2HLbbv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XenoOacTOTBUnJYRFsq+5+a3sjp5BXM6hEz7ObHNoVEIHyocekiX6WIiykwWDd1HhzT8RzY2YqxnK0HNQBJtW500ddiwrDgdIeCABZ4MPnKQdk9xDhUP3wfHSqbBI9v/e9jo0Iy30cCOgAMyVgMMVCMwql/cQxfKp2R1dWWrRm0PzUkrIXC9ykDY+hnJ5DqkE709guriwSRgGzWTQCPABWJZ6vbNHQlgo099+CCEMPnF6xnwynYETEWd8ls0WPUpSWnTrfuAhAWacPslUiQRNLBGXFSA7TrL8V3gNhesTnLFY0jb+bYWVp0i7SClY184jVtcayi7so2yuA0r4npbjsV8CJHZhPQ7no323cJ5w8FqpLwR/YJNRnHs0hNGs6ZFw/Lpsb+9oj/dZSbuL0XUNojx4d9Gch5mOT0ImINsdKyHzT9Muz1lcXhRWbo9a8J3B72H8Lg6+bKb1hyWMPeERBXMGRxEBCM7Ddfh/1jDuWhb5+QkAAAAASUVORK5CYII=)](https://github.com/fastai/fastpages)

https://nighthawkcoders.github.io/APCSP/

# JESA's Blog
## Hi everyone, it's Joselyn. Welcome to my Fastpages website :)

_powered by [fastpages](https://github.com/fastai/fastpages)_


## What To Do Next?

Great!  You have setup your repo.  Now its time to start writing content.  Some helpful links:

- [Writing Blogs With Jupyter](https://github.com/fastai/fastpages#writing-blog-posts-with-jupyter)

- [Writing Blogs With Markdown](https://github.com/fastai/fastpages#writing-blog-posts-with-markdown)

- [Writing Blog Posts With Word](https://github.com/fastai/fastpages#writing-blog-posts-with-microsoft-word)

- [(Optional) Preview Your Blog Locally](_fastpages_docs/DEVELOPMENT.md)

Note: you may want to remove example blog posts from the `_posts`,  `_notebooks` or `_word` folders (but leave them empty, don't delete these folders) if you don't want these blog posts to appear on your site.

Please use the [nbdev & blogging channel](https://forums.fast.ai/c/fastai-users/nbdev/48) in the fastai forums for any questions or feature requests.

# this is jesa's comment

end of README.md
echo "Show the shell environment variables, key on left of equal value on right"
echo ""

env
Show the shell environment variables, key on left of equal value on right

VSCODE_CLI=1
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/zsh
TERM=xterm-256color
TMPDIR=/var/folders/7t/v0fb0ypx0h9dd4f24whbpkp00000gn/T/
CONDA_SHLVL=1
PYTHONUNBUFFERED=1
TERM_PROGRAM_VERSION=445
CONDA_PROMPT_MODIFIER=(base) 
OLDPWD=/Users/jesa/vscode/APCSP/_notebooks/images
ORIGINAL_XDG_CURRENT_DESKTOP=undefined
MallocNanoZone=0
TERM_SESSION_ID=E3284013-E1FD-406C-AFA3-646EDF3FE567
PYTHONIOENCODING=utf-8
USER=jesa
COMMAND_MODE=unix2003
CONDA_EXE=/opt/anaconda3/bin/conda
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.4UdfpoMhY3/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
PAGER=cat
VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess
ELECTRON_RUN_AS_NODE=1
_CE_CONDA=
PATH=/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
CONDA_PREFIX=/opt/anaconda3
__CFBundleIdentifier=com.microsoft.VSCode
PWD=/Users/jesa/vscode/APCSP
notebooks=/Users/jesa/vscode/APCSP/_notebooks
VSCODE_HANDLES_UNCAUGHT_ERRORS=true
ELECTRON_NO_ATTACH_CONSOLE=1
LANG=en_US.UTF-8
project_repo=https://github.com/nighthawkcoders/APCSP.git
project=/Users/jesa/vscode/APCSP
project_dir=/Users/jesa/vscode
XPC_FLAGS=0x0
PS1=[PEXP\[\]ECT_PROMPT>
XPC_SERVICE_NAME=0
_CE_M=
HOME=/Users/jesa
SHLVL=3
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1
VSCODE_NLS_CONFIG={"locale":"en-us","availableLanguages":{},"_languagePackSupport":true}
LOGNAME=jesa
CONDA_PYTHON_EXE=/opt/anaconda3/bin/python
VSCODE_IPC_HOOK=/Users/jesa/Library/Application Support/Code/1.70.2-main.sock
VSCODE_CODE_CACHE_PATH=/Users/jesa/Library/Application Support/Code/CachedData/e4503b30fc78200f846c62cf8091b76ff5547662
CONDA_DEFAULT_ENV=base
VSCODE_PID=40666
posts=/Users/jesa/vscode/APCSP/_posts
VSCODE_CWD=/Users/jesa/vscode
_=/usr/bin/env
cd $project

echo ""
echo "show the secrets of .git"
cd .git
ls -l

echo ""
echo "look at config file"
cat config
show the secrets of .git
total 104
-rw-r--r--   1 jesa  staff      5 Aug 22 17:29 COMMIT_EDITMSG
-rw-r--r--   1 jesa  staff     93 Aug 25 13:47 FETCH_HEAD
-rw-r--r--   1 jesa  staff     23 Aug 22 17:29 HEAD
-rw-r--r--   1 jesa  staff     41 Aug 25 13:13 ORIG_HEAD
-rw-r--r--   1 jesa  staff    424 Aug 21 18:42 config
-rw-r--r--   1 jesa  staff     73 Aug 21 18:32 description
drwxr-xr-x  15 jesa  staff    480 Aug 21 18:32 hooks
-rw-r--r--   1 jesa  staff  20549 Aug 25 13:13 index
drwxr-xr-x   3 jesa  staff     96 Aug 21 18:32 info
drwxr-xr-x   4 jesa  staff    128 Aug 21 18:32 logs
drwxr-xr-x  35 jesa  staff   1120 Aug 25 13:47 objects
-rw-r--r--   1 jesa  staff     46 Aug 21 18:42 packed-refs
drwxr-xr-x   5 jesa  staff    160 Aug 21 18:32 refs

look at config file
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	ignorecase = true
	precomposeunicode = true
[remote "upstream"]
	url = https://github.com/nighthawkcoders/APCSP.git
	fetch = +refs/heads/*:refs/remotes/upstream/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[remote "origin"]
	url = https://github.com/jesa06/APCSP.git
	fetch = +refs/heads/*:refs/remotes/origin/*

Hacks

Learning how to run this demo on your machine will require some setup.

  • "mkdir" is a command that allows you to make a new directory. To run this demo you would need to:
    • mkdir ~/vsProjects
  • "git clone" add the APCSP project into this directory
  • "cd ~" this command on my machine is shorthand for cd /Users/johnmortensen. On your machine it would replace your username for mine.