Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
00d88fc
Change home screen with title and picture
SOoctosnake Aug 23, 2023
4e59785
added python game
SOoctosnake Aug 23, 2023
1e9c942
updated blog
SOoctosnake Aug 24, 2023
c336160
added search terms
SOoctosnake Aug 25, 2023
b28d01a
added_game
SOoctosnake Aug 25, 2023
bff78bf
week3 changes merged to main
SOoctosnake Sep 10, 2023
7c5892d
week3.5 assignment
SOoctosnake Sep 12, 2023
e96bf5c
added games and api searches
SOoctosnake Sep 12, 2023
ae5ff61
add_games_2
SOoctosnake Sep 12, 2023
160f9e0
added basics
SOoctosnake Sep 25, 2023
4406ef4
added html and js
SOoctosnake Sep 28, 2023
85ce90f
fixed make and added html and js cod in ipynb
SOoctosnake Sep 28, 2023
722a576
added js html variable
SOoctosnake Sep 28, 2023
3435797
added click event
SOoctosnake Sep 28, 2023
eb98e55
added basic js, capitals in html and javascript
SOoctosnake Sep 28, 2023
8e8bfe1
added_datatypecode
SOoctosnake Sep 28, 2023
b633b6f
Added error correction and review
SOoctosnake Sep 28, 2023
6fc83bf
added errors and review
SOoctosnake Sep 28, 2023
79e00a2
add review
SOoctosnake Sep 28, 2023
2a68ce0
added review to gihub page
SOoctosnake Sep 29, 2023
a8a1b79
commit
SOoctosnake Sep 29, 2023
87bd49b
commit2
SOoctosnake Sep 29, 2023
2942804
commit3
SOoctosnake Sep 29, 2023
f87395a
commit 4
SOoctosnake Sep 29, 2023
f1292d1
removed python files
SOoctosnake Oct 1, 2023
05bbd74
reverted to cayman theme
SOoctosnake Oct 1, 2023
8da87cf
Merge branch 'main' of https://github.com/SOoctosnake/student into main
SOoctosnake Oct 1, 2023
df677d2
updating notebook
SOoctosnake Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ default: server
@# tail and awk work together to extract Jekyll regeneration messages
@# When a _notebook is detected in the log, call make convert in the background
@# Note: We use the "if ($$0 ~ /_notebooks\/.*\.ipynb/) { system(\"make convert &\") }" to call make convert
@(tail -f $(LOG_FILE) | awk '/Server address: http:\/\/0.0.0.0:$(PORT)\/$(REPO_NAME)\// { serverReady=1 } \
@(tail -f $(LOG_FILE) | awk '/Server address: http:\/\/127.0.0.1:$(PORT)\/$(REPO_NAME)\// { serverReady=1 } \
serverReady && /^ *Regenerating:/ { regenerate=1 } \
regenerate { \
if (/^[[:blank:]]*$$/) { regenerate=0 } \
Expand Down Expand Up @@ -56,7 +56,7 @@ default: server
# Start the local web server
server: stop convert
@echo "Starting server..."
@@nohup bundle exec jekyll serve -H 0.0.0.0 -P $(PORT) > $(LOG_FILE) 2>&1 & \
@@nohup bundle exec jekyll serve -H 127.0.0.1 -P $(PORT) > $(LOG_FILE) 2>&1 & \
PID=$$!; \
echo "Server PID: $$PID"
@@until [ -f $(LOG_FILE) ]; do sleep 1; done
Expand Down
12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
worldometer = "*"

[dev-packages]

[requires]
python_version = "3.8"
421 changes: 421 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

100 changes: 41 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,72 +12,16 @@ All `GitHub Pages` websites are managed on GitHub infrastructure. GitHub uses `J
## Preparing a Preview Site
In all development, it is recommended to test your code before deployment. The GitHub Pages development process is optimized by testing your development on your local machine, prior to files on GitHub

Development Cycle. For GitHub pages, the tooling described below will create a development cycle `make-code-save-preview`. In the development cycle, it is a requirement to preview work locally, prior to doing a VSCode `commit` to git.
Development Cycle. For GitHub pages, the tooling described below will create a development cycle `make-code-save-preview`. In the development cycle, it is a requirement to preview work locally, prior to doing a VSCode `commit` to git.

Deployment Cycle. In the deplopyment cycle, `sync-github-action-review`, it is a requirement to complete the development cycle prior to doing a VSCode `sync`. The sync triggers github repository update. The action starts the jekyll build to publish the website. Any step can have errors and will require you to do a review.

### WSL and/or Ubuntu installation requirements
- The result of these step is Ubuntu tools to run preview server. These procedures were created using [jekyllrb.com](https://jekyllrb.com/docs/installation/ubuntu/)
- Run scripts in scripts directory of teacher repo: setup_ubuntu.sh and activate.sh. Or, follow commands below.
```bash
## WSL/Ubuntu commands
# sudo apt install, installs packages for Ubuntu
echo "=== Ugrade Packages ==="
sudo apt update
sudo apt upgrade -y
#
echo "=== Install Ruby ==="
sudo apt install -y ruby-full build-essential zlib1g-dev
#
echo "=== Install Python ==="
sudo apt-get install -y python3 python3-pip python-is-python3
#
echo "=== Install Jupyter Notebook ==="
sudo apt-get install -y jupyter-notebook

# bash commands, install user requirements.
echo "=== GitHub pages build tools ==="
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
echo "=== Gem install starting, thinking... ==="
gem install jekyll bundler
head -30 ./teacher/scripts/activate.sh
echo "=== !!!Start a new Terminal!!! ==="
```
- Run scripts in scripts directory of student repo: setup_ubuntu.sh and activate.sh. Expected name of the repository to run these scripts is 'student'.

### MacOs installation requirements
- Ihe result of these step are MacOS tools to run preview server. These procedures were created using [jekyllrb.com](https://jekyllrb.com/docs/installation/macos/). Run scripts in scripts directory of teacher repo: setup_macos.sh and activate_macos.sh. Or, follow commands below.
```bash
# MacOS commands
# brew install, installs packages for MacOS
echo "=== Ugrade Packages ==="
brew update
brew upgrade
#
echo "=== Install Ruby ==="
brew install chruby ruby-install xz
ruby-install ruby 3.1.3
#
echo "=== Install Python ==="
brew install python
#
echo "=== Install Jupyter Notebook ==="
brew install jupyter

# bash commands, install user requirements.
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
echo '# Install Ruby Gems to ~/gems' >> ~/.zshrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.zshrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.zshrc
echo "=== Gem install starting, thinking... ==="
gem install jekyll bundler
head -30 ./teacher/scripts/activate.sh
echo "=== !!!Start a new Terminal!!! ==="
```
- Ihe result of these step are MacOS tools to run preview server. These procedures were created using [jekyllrb.com](https://jekyllrb.com/docs/installation/macos/). Run scripts in scripts directory of student repo: setup_macos.sh and activate_macos.sh. Expected name of the repository to run these scripts is 'student'.

### Preview
- The result of these step is server running on: http://0.0.0.0:4100/teacher/. Regeneration messages will run in terminal on any save. Press the Enter or Return key in the terminal at any time to enter commands.
Expand Down Expand Up @@ -122,3 +66,41 @@ bundle install
```bash
make convert
```
### Meta Data (Front Matter)
- Meta data also known as front matter is a set of key value pairs that can provide additional information to github pages about .md and .ipynb files. This can and probably will be used in other file types (ie doc, pdf), if we added them to the system.

- In the front matter you can also define things like a title and description for the page. Additional front matter is defined to place content on "Computer Science Lab Notebook" page. The `courses:` key will place data on a specific page with the nested `week:` placing data on a specific row on the page. The `type:` key in front matter will place blog under the plans, hacks(ToDo), and tangibles column.

- In our files the front matter is defined at the top of the page or the first markdown cell.

- First open one of the .md or .ipynb files already included in either your _posts folder or your _notebooks folder.

- In the .md file you should notice something similar to this at the top of the page. To see this in your .ipynb files you will need to double click the markdown cell at the top of the file.

```yaml
---
toc: true
comments: false
layout: post
title: Daily Plan Sample
description: Example Blog!!! This shows planning and notes from hacks.
type: plans
courses: { compsci: {week: 0} }
---
```

- Front matter will always have '---' at the top and bottom to distinguish it and each key value pair will be separated by a ':'.

- Here we can modify things like the title and description.

- The type value will tells us which column this is going to appear under, supported values: `plans`, `hacks`, `tangibles`.

- The courses tells us which menu item it will be under, in this case the `compsci` menu, and the `week` tells it what row (week) it will appear under that menu.

- In our examples, hacks(ToDo) contains references to our IPYNB files; these are stored in GitHub under the `_notebooks` folder. The plans and tangibles contains references to our MD files; these are stored in GitHub under the `_posts` folder.

- Key files in Computer Science Lab Notebook
- `compsci.md` - this is the "Computer Science Lab Notebook" page and is the link `https://nighthawkcoders.github.io/student/compsci`. It contains the Title and Number of units on the page.
- `_data/compsci.yml` - this contains the supporting data that helps organize the units on the page.
- `_layouts`\schedule.html - this contains code, in the Liquid language, that generates the HTML for all the rows and columns.
- fyi, the schedule.html could work for another type of page. For instance, you could make a csa.md, _data/csa.yml, and tag files with `csa: {week: 0}` under courses.
9 changes: 5 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
title: CompSci Blogs
description: "August 2023 to June 2024"
owner_name: Nighthawk Coders
github_username: nighthawkcoders
owner_name: Soham Kulkarni
github_username: SOoctosnake
baseurl: "/student"
remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
plugins:
- jekyll-remote-theme
future: true

15 changes: 15 additions & 0 deletions _config.yml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: CompSci Blogs
description: "August 2023 to June 2024"
owner_name: Soham Kulkarni
github_username: SOoctosnake
baseurl: "/student"
# remote_theme: pages-themes/[email protected]
#remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
remote_theme: pages-themes/[email protected]
# remote_theme: pages-themes/[email protected]
plugins:
- jekyll-remote-theme
future: true

11 changes: 11 additions & 0 deletions _data/compsci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CSP course meta data
Unit1:
title: Build a Lab Notebook
description: Install Tools. Design lab notebook. Learn GitHub Pages. Work with Pair (pair name).
start: 0
end: 3
Unit2:
title: Learn Language
description: Learn (JavaScript|Python|Java). Start Agile development process.
start: 4
end: 7
46 changes: 0 additions & 46 deletions _data/csa.yml

This file was deleted.

46 changes: 0 additions & 46 deletions _data/csp.yml

This file was deleted.

31 changes: 0 additions & 31 deletions _data/csse.yml

This file was deleted.

65 changes: 0 additions & 65 deletions _data/mario_metadata.yml

This file was deleted.

Loading