From 3214380106eeee0c29c50d15cbe07ae3c875af1a Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Thu, 24 Aug 2023 22:30:35 -0700 Subject: [PATCH 01/18] go to my github page(https://github.com/sumedhaKl) --- 2023-08-16-linux_shell.ipynb | 902 ++++++++++++++++++ index.md | 23 +- indexBlogs.md | 51 +- .../convert_notebooks.cpython-310.pyc | Bin 0 -> 2749 bytes 4 files changed, 968 insertions(+), 8 deletions(-) create mode 100644 2023-08-16-linux_shell.ipynb create mode 100644 scripts/__pycache__/convert_notebooks.cpython-310.pyc diff --git a/2023-08-16-linux_shell.ipynb b/2023-08-16-linux_shell.ipynb new file mode 100644 index 000000000..927aa945d --- /dev/null +++ b/2023-08-16-linux_shell.ipynb @@ -0,0 +1,902 @@ +{ + "cells": [ + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "---\n", + "layout: post\n", + "title: Linux Shell and Bash\n", + "description: A Tech Talk on Linux and the Bash shell.\n", + "toc: true\n", + "comments: true\n", + "categories: [5.A, C4.1]\n", + "courses: { csse: {week: 1}, csp: {week: 1, categories: [6.B]}, csa: {week: 1} }\n", + "type: devops\n", + "---" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Bash Tutorial\n", + "> A brief overview of Bash, on your way to becoming a Linux expert. When a computer boots up, a kernel (MacOS, Windows, Linux) is started. This kernel provides a shell, or terminal, that allows user to interact with a most basic set of commands. Typically, the casual user will not interact with the shell/terminal as a Desktop User Interface is started by the computer boot up process. To activate a shell directly, users will run a \"terminal\" through the Desktop. VS Code provides ability to activate \"terminal\" while in the IDE." + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Variable Prerequisites\n", + "> Setup bash shell dependency variables for this page. Variables are one of the first aspects of programming. Variables have \"name\" and a \"value\".\n", + "\n", + "- Hack Note: Change variables to match your student project." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Define variable\n", + "The following code cell defines 3 variables and assigns each a value. There are some extra command, called a HERE document, that write these variables to a file. This is so we can use these variables over and over below." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [], + "source": [ + "%%script bash\n", + "\n", + "# Dependency Variables, set to match your project directories\n", + "\n", + "cat < /tmp/variables.sh\n", + "export project_dir=$HOME/vscode # change vscode to different name to test git clone\n", + "export project=\\$project_dir/teacher # change teacher to name of project from git clone\n", + "export project_repo=\"https://github.com/nighthawkcoders/teacher.git\" # change to project of choice\n", + "EOF" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Output the value of a variable\n", + "The following code cell outputs the value of the variables, using the echo command. For visual understanding in the output, each echo command provide a title before the $variable " + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Project dir: /home/sumi/vscode\n", + "Project: /home/sumi/vscode/teacher\n", + "Repo: https://github.com/nighthawkcoders/teacher.git\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "# Output shown title and value variables\n", + "echo \"Project dir: $project_dir\"\n", + "echo \"Project: $project\"\n", + "echo \"Repo: $project_repo\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Project Setup and Analysis with Bash Scripts\n", + "The bash scripts that follow automate what was done in the setup procedures. The purpose of this is to show that many of the commands we performed can be added to a script, then performed automatically." + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Pull Code\n", + "> Pull code from GitHub to your machine. This is a bash script, a sequence of commands, that will create a project directory and add the \"project\" from GitHub to the vscode directory. There is conditional logic to make sure that clone only happen if it does not (!) exist. Here are some key elements in this code...\n", + "\n", + "- cd command (change directory), remember this from terminal session\n", + "- if statements (conditional statement, called selection statement by College Board), code inside only happens if condition is met" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Using conditional statement to create a project directory and project\n", + "Directory /home/sumi/vscode exists.\n", + "Directory /home/sumi/vscode/teacher exists.\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Using conditional statement to create a project directory and project\"\n", + "\n", + "cd ~ # start in home directory\n", + "\n", + "# Conditional block to make a project directory\n", + "if [ ! -d $project_dir ]\n", + "then \n", + " echo \"Directory $project_dir does not exists... makinng directory $project_dir\"\n", + " mkdir -p $project_dir\n", + "fi\n", + "echo \"Directory $project_dir exists.\" \n", + "\n", + "# Conditional block to git clone a project from project_repo\n", + "if [ ! -d $project ]\n", + "then\n", + " echo \"Directory $project does not exists... cloning $project_repo\"\n", + " cd $project_dir\n", + " git clone $project_repo\n", + " cd ~\n", + "fi\n", + "echo \"Directory $project exists.\" " + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Look at files Github project\n", + "> All computers contain files and directories. The clone brought more files from cloud to your machine. Review the bash shell script, observe the commands that show and interact with files and directories. These were used during setup.\n", + "\n", + "- \"ls\" lists computer files in Unix and Unix-like operating systems\n", + "- \"cd\" offers way to navigate and change working directory\n", + "- \"pwd\" print working directory\n", + "- \"echo\" used to display line of text/string that are passed as an argument" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Navigate to project, then navigate to area wwhere files were cloned\n", + "/home/sumi/vscode/teacher\n", + "\n", + "list top level or root of files with project pulled from github\n", + "Gemfile\n", + "LICENSE\n", + "Makefile\n", + "README.md\n", + "_config.yml\n", + "_data\n", + "_includes\n", + "_layouts\n", + "_notebooks\n", + "_posts\n", + "assets\n", + "csa.md\n", + "csp.md\n", + "csse.md\n", + "images\n", + "index.md\n", + "indexBlogs.md\n", + "scripts\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Navigate to project, then navigate to area wwhere files were cloned\"\n", + "cd $project\n", + "pwd\n", + "\n", + "echo \"\"\n", + "echo \"list top level or root of files with project pulled from github\"\n", + "ls\n" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Look at file list with hidden and long attributes\n", + "> Most linux commands have options to enhance behavior. The enhanced listing below shows permission bits, owner of file, size and date.\n", + "\n", + "[ls reference](https://www.rapidtables.com/code/linux/ls.html)" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Navigate to project, then navigate to area wwhere files were cloned\n", + "/home/sumi/vscode/teacher\n", + "\n", + "list all files in long format\n", + "total 100\n", + "drwxr-xr-x 12 sumi sumi 4096 Aug 22 01:03 .\n", + "drwxr-xr-x 5 sumi sumi 4096 Aug 19 22:27 ..\n", + "drwxr-xr-x 8 sumi sumi 4096 Aug 22 01:03 .git\n", + "drwxr-xr-x 3 sumi sumi 4096 Aug 19 20:50 .github\n", + "-rw-r--r-- 1 sumi sumi 157 Aug 19 20:50 .gitignore\n", + "-rw-r--r-- 1 sumi sumi 122 Aug 19 20:50 Gemfile\n", + "-rw-r--r-- 1 sumi sumi 1081 Aug 19 20:50 LICENSE\n", + "-rw-r--r-- 1 sumi sumi 3131 Aug 19 20:50 Makefile\n", + "-rw-r--r-- 1 sumi sumi 6853 Aug 22 01:03 README.md\n", + "-rw-r--r-- 1 sumi sumi 607 Aug 19 20:50 _config.yml\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 _data\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 _includes\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 _layouts\n", + "drwxr-xr-x 3 sumi sumi 4096 Aug 22 01:03 _notebooks\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 _posts\n", + "drwxr-xr-x 4 sumi sumi 4096 Aug 19 20:50 assets\n", + "-rw-r--r-- 1 sumi sumi 92 Aug 19 20:50 csa.md\n", + "-rw-r--r-- 1 sumi sumi 98 Aug 19 20:50 csp.md\n", + "-rw-r--r-- 1 sumi sumi 108 Aug 19 20:50 csse.md\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 images\n", + "-rw-r--r-- 1 sumi sumi 5149 Aug 19 20:50 index.md\n", + "-rw-r--r-- 1 sumi sumi 53 Aug 19 20:50 indexBlogs.md\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 22 01:03 scripts\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Navigate to project, then navigate to area wwhere files were cloned\"\n", + "cd $project\n", + "pwd\n", + "\n", + "echo \"\"\n", + "echo \"list all files in long format\"\n", + "ls -al # all files -a (hidden) in -l long listing" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Look for posts\n", + "/home/sumi/vscode/teacher/_posts\n", + "total 88\n", + "-rw-r--r-- 1 sumi sumi 7685 Aug 19 20:50 2023-08-16-Tools_Equipment.md\n", + "-rw-r--r-- 1 sumi sumi 4650 Aug 20 22:28 2023-08-16-pair_programming.md\n", + "-rw-r--r-- 1 sumi sumi 7137 Aug 19 20:50 2023-08-17-markdown-html_fragments.md\n", + "-rw-r--r-- 1 sumi sumi 6659 Aug 19 20:50 2023-08-23-javascript-calculator.md\n", + "-rw-r--r-- 1 sumi sumi 10642 Aug 19 20:50 2023-08-30-agile_methodolgy.md\n", + "-rw-r--r-- 1 sumi sumi 3849 Aug 19 20:50 2023-08-30-javascript-music-api.md\n", + "-rw-r--r-- 1 sumi sumi 5312 Aug 19 20:50 2023-09-06-javascript-motion-mario-oop.md\n", + "-rw-r--r-- 1 sumi sumi 4812 Aug 19 20:50 2023-09-13-java-free_response.md\n", + "-rw-r--r-- 1 sumi sumi 13220 Aug 19 20:50 2023-10-16-java-api-pojo-jpa.md\n", + "-rw-r--r-- 1 sumi sumi 6819 Aug 19 20:50 2023-11-13-jwt-java-spring.md\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Look for posts\"\n", + "export posts=$project/_posts # _posts inside project\n", + "cd $posts # this should exist per fastpages\n", + "pwd # present working directory\n", + "ls -l # list posts" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Look for notebooks\n", + "/home/sumi/vscode/teacher/_notebooks\n", + "total 740\n", + "-rw-r--r-- 1 sumi sumi 13014 Aug 19 20:50 2023-08-01-cloud_database.ipynb\n", + "-rw-r--r-- 1 sumi sumi 8992 Aug 19 20:50 2023-08-01-mario_player.ipynb\n", + "-rw-r--r-- 1 sumi sumi 43705 Aug 19 20:50 2023-08-02-cloud-workspace-automation.ipynb\n", + "-rw-r--r-- 1 sumi sumi 22060 Aug 19 20:50 2023-08-03-mario_block.ipynb\n", + "-rw-r--r-- 1 sumi sumi 11791 Aug 19 20:50 2023-08-03-mario_platform.ipynb\n", + "-rw-r--r-- 1 sumi sumi 19450 Aug 19 20:50 2023-08-03-mario_tube.ipynb\n", + "-rw-r--r-- 1 sumi sumi 24387 Aug 19 20:50 2023-08-04-mario_background.ipynb\n", + "-rw-r--r-- 1 sumi sumi 3496 Aug 19 20:50 2023-08-07-mario_lesson.ipynb\n", + "-rw-r--r-- 1 sumi sumi 10110 Aug 19 20:50 2023-08-15-java-hello.ipynb\n", + "-rw-r--r-- 1 sumi sumi 25624 Aug 22 01:03 2023-08-16-github_pages_setup.ipynb\n", + "-rw-r--r-- 1 sumi sumi 16156 Aug 19 20:50 2023-08-16-linux_shell.ipynb\n", + "-rw-r--r-- 1 sumi sumi 11466 Aug 19 20:50 2023-08-16-python_hello.ipynb\n", + "-rw-r--r-- 1 sumi sumi 9425 Aug 19 20:50 2023-08-23-github_pages_anatomy.ipynb\n", + "-rw-r--r-- 1 sumi sumi 22668 Aug 19 20:50 2023-08-23-java-console_games.ipynb\n", + "-rw-r--r-- 1 sumi sumi 9038 Aug 19 20:50 2023-08-23-python_tricks.ipynb\n", + "-rw-r--r-- 1 sumi sumi 10152 Aug 19 20:50 2023-08-30-javascript_top_10.ipynb\n", + "-rw-r--r-- 1 sumi sumi 9689 Aug 19 20:50 2023-08-30-showcase-S1-pair.ipynb\n", + "-rw-r--r-- 1 sumi sumi 7192 Aug 19 20:50 2023-09-05-python-flask-anatomy.ipynb\n", + "-rw-r--r-- 1 sumi sumi 22157 Aug 19 20:50 2023-09-06-AWS-deployment.ipynb\n", + "-rw-r--r-- 1 sumi sumi 14380 Aug 19 20:50 2023-09-06-java-primitives.ipynb\n", + "-rw-r--r-- 1 sumi sumi 11671 Aug 19 20:50 2023-09-06-javascript-input.ipynb\n", + "-rw-r--r-- 1 sumi sumi 13706 Aug 19 20:50 2023-09-12-java_menu_class.ipynb\n", + "-rw-r--r-- 1 sumi sumi 9562 Aug 19 20:50 2023-09-13-java_fibonaccii_class.ipynb\n", + "-rw-r--r-- 1 sumi sumi 44217 Aug 19 20:50 2023-09-13-javascript_output.ipynb\n", + "-rw-r--r-- 1 sumi sumi 43423 Aug 19 20:50 2023-09-13-python-pandas_intro.ipynb\n", + "-rw-r--r-- 1 sumi sumi 11578 Aug 19 20:50 2023-09-20-java-image_2D.ipynb\n", + "-rw-r--r-- 1 sumi sumi 26739 Aug 19 20:50 2023-09-20-javascript_motion_dog.ipynb\n", + "-rw-r--r-- 1 sumi sumi 13599 Aug 19 20:50 2023-10-02-java-spring-anatomy.ipynb\n", + "-rw-r--r-- 1 sumi sumi 12429 Aug 19 20:50 2023-10-09-java-chatgpt.ipynb\n", + "-rw-r--r-- 1 sumi sumi 15632 Aug 19 20:50 2023-10-09-javascript_api.ipynb\n", + "-rw-r--r-- 1 sumi sumi 113091 Aug 19 20:50 2023-10-09-python_machine_learing_fitness.ipynb\n", + "-rw-r--r-- 1 sumi sumi 16271 Aug 19 20:50 2023-11-13-jwt-python-flask.ipynb\n", + "-rw-r--r-- 1 sumi sumi 15951 Aug 19 20:50 2023-11-13-vulnerabilities.ipynb\n", + "-rw-r--r-- 1 sumi sumi 18328 Aug 19 20:50 2023-11-20-jwt-java-spring-challenge.md\n", + "-rw-r--r-- 1 sumi sumi 10745 Aug 19 20:50 2024-01-04-cockpit-setup.ipynb\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 files\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Look for notebooks\"\n", + "export notebooks=$project/_notebooks # _notebooks is inside project\n", + "cd $notebooks # this should exist per fastpages\n", + "pwd # present working directory\n", + "ls -l # list notebooks" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Look for images in notebooks, print working directory, list files\n", + "/home/sumi/vscode/student\n", + "total 96\n", + "-rw-r--r-- 1 sumi sumi 16967 Aug 22 01:08 2023-08-16-linux_shell.ipynb\n", + "-rw-r--r-- 1 sumi sumi 122 Aug 21 23:38 Gemfile\n", + "-rw-r--r-- 1 sumi sumi 1081 Aug 19 22:27 LICENSE\n", + "-rw-r--r-- 1 sumi sumi 3116 Aug 19 22:27 Makefile\n", + "-rw-r--r-- 1 sumi sumi 5798 Aug 19 22:27 README.md\n", + "-rw-r--r-- 1 sumi sumi 451 Aug 19 22:27 _config.yml\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 22:27 _data\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 22:27 _includes\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 22:27 _layouts\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 22:27 _notebooks\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 22:27 _posts\n", + "-rw-r--r-- 1 sumi sumi 92 Aug 19 22:27 csa.md\n", + "-rw-r--r-- 1 sumi sumi 98 Aug 19 22:27 csp.md\n", + "-rw-r--r-- 1 sumi sumi 108 Aug 19 22:27 csse.md\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 22:27 images\n", + "-rw-r--r-- 1 sumi sumi 790 Aug 19 22:27 index.md\n", + "-rw-r--r-- 1 sumi sumi 5137 Aug 22 00:06 indexBlogs.md\n", + "drwxr-xr-x 3 sumi sumi 4096 Aug 19 22:27 scripts\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "bash: line 6: cd: /images: No such file or directory\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Look for images in notebooks, print working directory, list files\"\n", + "cd $notebooks/images # this should exist per fastpages\n", + "pwd\n", + "ls -l" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Look inside a Markdown File\n", + "> \"cat\" reads data from the file and gives its content as output" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Navigate to project, then navigate to area wwhere files were cloned\n", + "show the contents of README.md\n", + "\n", + "## Teacher Blog site\n", + "This site is intended for the development of Teacher content. This blogging site is built using GitHub Pages [GitHub Pages](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site).\n", + "- The purpose is to build lessons and distribute across different Computer Science sections (CSSE, CSP, CSA), a pathway that covers 3 years of High School Instruction.\n", + "- The primary languages and frameworks that are taught are `JavaScript/HTML/CSS`, `Python/Flask`, `Java/Spring`. Read below for more details.\n", + "- In this course, Teacher content is not exclusively developed by Teachers. In fact, many Students have been invited to develop and publish content into this repository. Their names will appear as authors on the content which they aided in producing.\n", + "- This site has incorporated ideas and has radically modified scripts from the now deprecated [fastpages](https://github.com/fastai/fastpages) repository.\n", + "- This site includes assistance and guideance from ChatGPT, [chat.openai.com](https://chat.openai.com/) \n", + "\n", + "### Courses and Pathway\n", + "The focus of the Del Norte Computer Science three-year pathway is `Full Stack Web Development`. This focus provides a variety of technologies and exposures. The intention of the pathway is breadth and exposure.\n", + "- `JavaScript` documents are focused on frontend development and for entry class into the Del Norte Computer Science pathway. JavaScript documents and materials are a prerequisites to Python and Java classes.\n", + "- `Python` documents are focused on backend development and requirements for the AP Computer Science Principles exam.\n", + "- `Java` documents are focused on backend development and requirements for the AP Computer Sciene A exam.\n", + "- `Data Structures` materials embedded into JavaScript, Python, or Java documents are focused on college course articulation.\n", + "\n", + "### Resources and Instruction\n", + "The materials, such as this README, as well as `Tools`, `DevOps`, and `Collaboration` resources are integral part of this course and Computer Science in general. Everything in our environment is part of our learning of Computer Science. \n", + "- `Visual Studio Code` is key the code-build-debug cycle editor used in this course, [VSCode download](https://code.visualstudio.com/). This is an example of a resource, but inside of it it has features for collaboration.\n", + "- `Tech Talks`, aka lectures, are intended to be interactive and utilize `Jupyter Notebooks` and Websites. This is an example of blending instruction and tools together, which in turn provide additional resources for learning. For instance, deep knowledge on GitHub Pages and Notebooks are valuable in understanding principles behind Full Stack Development and Data Science. \n", + "\n", + "## GitHub Pages\n", + "All `GitHub Pages` websites are managed on GitHub infrastructure. GitHub uses `Jekyll` to tranform your content into static websites and blogs. Each time we change files in GitHub it initiates a GitHub Action that rebuilds and publishes the site with Jekyll. \n", + "- GitHub Pages is powered by: [Jekyll](https://jekyllrb.com/).\n", + "- Publised teacher website: [nighthawkcoders.github.io/teacher](https://nighthawkcoders.github.io/teacher/)\n", + "\n", + "## Preparing a Preview Site \n", + "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\n", + "\n", + "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.\n", + "\n", + "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.\n", + "\n", + "### WSL and/or Ubuntu installation requirements\n", + "- 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/)\n", + "```bash\n", + "# \n", + "# WSL/Ubuntu setup\n", + "#\n", + "mkdir mkdir vscode\n", + "git clone https://github.com/nighthawkcoders/teacher.git\n", + "# run script, path vscode/teacher are baked in script\n", + "~/vscode/teacher/scripts/activate_ubuntu.sh\n", + "#=== !!!Start a new Terminal!!! ===\n", + "#=== Continue to next section ===\n", + "```\n", + "\n", + "### MacOs installation requirements \n", + "- 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/). \n", + "\n", + "```bash\n", + "# \n", + "# MacOS setup\n", + "#\n", + "mkdir mkdir vscode\n", + "git clone https://github.com/nighthawkcoders/teacher.git\n", + "# run script, path vscode/teacher are baked in script\n", + "~/vscode/teacher/scripts/activate_macos.sh\n", + "#=== !!!Start a new Terminal!!! ===\n", + "#=== Continue to next section ===\n", + "```\n", + "\n", + "\n", + "### Run Preview Server\n", + "- 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 and update site upon refresh. Terminal is active, press the Enter or Return key in the terminal at any time to see prompt to enter commands.\n", + "\n", + "- Complete installation\n", + "```bash\n", + "cd ~/vscode/teacher\n", + "bundle install\n", + "make\n", + "```\n", + "- Run Server. This requires running terminal commands `make`, `make stop`, `make clean`, or `make convert` to manage the running server. Logging of details will appear in terminal. A `Makefile` has been created in project to support commands and start processes.\n", + "\n", + " - Start preview server in terminal\n", + " ```bash\n", + " cd ~/vscode/teacher # my project location, adapt as necessary\n", + " make\n", + " ```\n", + "\n", + " - Terminal output of shows server address. Cmd or Ctl click http location to open preview server in browser. Example Server address message... \n", + " ```\n", + " Server address: http://0.0.0.0:4100/teacher/\n", + " ```\n", + "\n", + " - Save on ipynb or md activiates \"regeneration\". Refresh browser to see updates. Example terminal message...\n", + " ```\n", + " Regenerating: 1 file(s) changed at 2023-07-31 06:54:32\n", + " _notebooks/2024-01-04-cockpit-setup.ipynb\n", + " ```\n", + "\n", + " - Terminal message are generated from background processes. Click return or enter to obtain prompt and use terminal as needed for other tasks. Alway return to root of project `cd ~/vscode/teacher` for all \"make\" actions. \n", + " \n", + "\n", + " - Stop preview server, but leave constructed files in project for your review.\n", + " ```bash\n", + " make stop\n", + " ```\n", + "\n", + " - Stop server and \"clean\" constructed files, best choice when renaming files to eliminate potential duplicates in constructed files.\n", + " ```bash\n", + " make clean\n", + " ```\n", + "\n", + " - Test notebook conversions, best choice to see if IPYNB conversion is acting up.\n", + " ```bash\n", + " make convert\n", + " ```\n", + " \n", + "end of README.md\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "echo \"Navigate to project, then navigate to area wwhere files were cloned\"\n", + "\n", + "cd $project\n", + "echo \"show the contents of README.md\"\n", + "echo \"\"\n", + "\n", + "cat README.md # show contents of file, in this case markdown\n", + "echo \"\"\n", + "echo \"end of README.md\"\n" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Env, Git and GitHub\n", + "> Env(ironment) is used to capture things like path to Code or Home directory. Git and GitHub is NOT Only used to exchange code between individuals, it is often used to exchange code through servers, in our case deployment for Website. All tools we use have a behind the scenes relationships with the system they run on (MacOS, Windows, Linus) or a relationship with servers which they are connected to (ie GitHub). There is an \"env\" command in bash. There are environment files and setting files (.git/config) for Git. They both use a key/value concept.\n", + "\n", + "- \"env\" show setting for your shell\n", + "- \"git clone\" sets up a director of files\n", + "- \"cd $project\" allows user to move inside that directory of files\n", + "- \".git\" is a hidden directory that is used by git to establish relationship between machine and the git server on GitHub. " + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Show the shell environment variables, key on left of equal value on right\n", + "\n", + "SHELL=/bin/bash\n", + "PYTHONUNBUFFERED=1\n", + "WSL2_GUI_APPS_ENABLED=1\n", + "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1\n", + "WSL_DISTRO_NAME=Ubuntu-22.04\n", + "ELECTRON_RUN_AS_NODE=1\n", + "VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess\n", + "NAME=SumedhaKamaraju\n", + "PWD=/home/sumi/vscode/student\n", + "LOGNAME=sumi\n", + "PYDEVD_IPYTHON_COMPATIBLE_DEBUGGING=1\n", + "MOTD_SHOWN=update-motd\n", + "HOME=/home/sumi\n", + "LANG=C.UTF-8\n", + "WSL_INTEROP=/run/WSL/394_interop\n", + "LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:\n", + "WAYLAND_DISPLAY=wayland-0\n", + "CLICOLOR=1\n", + "GEM_HOME=/home/sumi/gems\n", + "LESSCLOSE=/usr/bin/lesspipe %s %s\n", + "VSCODE_HANDLES_SIGPIPE=true\n", + "TERM=xterm-color\n", + "LESSOPEN=| /usr/bin/lesspipe %s\n", + "USER=sumi\n", + "GIT_PAGER=cat\n", + "PYTHONIOENCODING=utf-8\n", + "DISPLAY=:0\n", + "SHLVL=1\n", + "PAGER=cat\n", + "VSCODE_CWD=/mnt/c/Users/venka/AppData/Local/Programs/Microsoft VS Code\n", + "MPLBACKEND=module://matplotlib_inline.backend_inline\n", + "XDG_RUNTIME_DIR=/run/user/1000/\n", + "WSLENV=VSCODE_WSL_EXT_LOCATION/up\n", + "VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/venka/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.0\n", + "XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop\n", + "PATH=/usr/bin:/home/sumi/.local/bin:/home/sumi/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/remote-cli:/home/sumi/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/venka/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/venka/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin:/home/sumi/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/remote-cli:/home/sumi/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/venka/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/venka/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin\n", + "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus\n", + "VSCODE_NLS_CONFIG={\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}\n", + "HOSTTYPE=x86_64\n", + "PULSE_SERVER=unix:/mnt/wslg/PulseServer\n", + "VSCODE_HANDLES_UNCAUGHT_ERRORS=true\n", + "VSCODE_IPC_HOOK_CLI=/run/user/1000/vscode-ipc-1115721b-dec4-4c6f-b902-73d855397651.sock\n", + "_=/usr/bin/env\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# This command has no dependencies\n", + "\n", + "echo \"Show the shell environment variables, key on left of equal value on right\"\n", + "echo \"\"\n", + "\n", + "env" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "show the secrets of .git\n", + "total 60\n", + "-rw-r--r-- 1 sumi sumi 102 Aug 22 01:03 FETCH_HEAD\n", + "-rw-r--r-- 1 sumi sumi 21 Aug 19 20:50 HEAD\n", + "-rw-r--r-- 1 sumi sumi 41 Aug 22 01:03 ORIG_HEAD\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 branches\n", + "-rw-r--r-- 1 sumi sumi 267 Aug 19 20:50 config\n", + "-rw-r--r-- 1 sumi sumi 73 Aug 19 20:50 description\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 hooks\n", + "-rw-r--r-- 1 sumi sumi 11702 Aug 22 01:03 index\n", + "drwxr-xr-x 2 sumi sumi 4096 Aug 19 20:50 info\n", + "drwxr-xr-x 3 sumi sumi 4096 Aug 19 20:50 logs\n", + "drwxr-xr-x 86 sumi sumi 4096 Aug 22 01:03 objects\n", + "-rw-r--r-- 1 sumi sumi 112 Aug 19 20:50 packed-refs\n", + "drwxr-xr-x 5 sumi sumi 4096 Aug 19 20:50 refs\n", + "\n", + "look at config file\n", + "[core]\n", + "\trepositoryformatversion = 0\n", + "\tfilemode = true\n", + "\tbare = false\n", + "\tlogallrefupdates = true\n", + "[remote \"origin\"]\n", + "\turl = https://github.com/nighthawkcoders/teacher.git\n", + "\tfetch = +refs/heads/*:refs/remotes/origin/*\n", + "[branch \"main\"]\n", + "\tremote = origin\n", + "\tmerge = refs/heads/main\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# Extract saved variables\n", + "source /tmp/variables.sh\n", + "\n", + "cd $project\n", + "\n", + "echo \"\"\n", + "echo \"show the secrets of .git\"\n", + "cd .git\n", + "ls -l\n", + "\n", + "echo \"\"\n", + "echo \"look at config file\"\n", + "cat config" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Advanced Student Request - Make a file in Bash\n", + "> This example was requested by a student (Jun Lim, CSA). The request was to make jupyer file using bash, I adapted the request to markdown. This type of thought will have great extrapolation to coding and possibilities of using List, Arrays, or APIs to build user interfaces. JavaScript is a language where building HTML is very common.\n", + "\n", + "> To get more interesting output from terminal, this will require using something like mdless (https://github.com/ttscoff/mdless). This enables see markdown in rendered format.\n", + "- On Desktop [Install PKG from MacPorts](https://www.macports.org/install.php)\n", + "- In Terminal on MacOS\n", + " - [Install ncurses](https://ports.macports.org/port/ncurses/)\n", + " - ```gem install mdless```\n", + " \n", + "> Output of the example is much nicer in \"jupyter\"" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "vscode": { + "languageId": "shellscript" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "File listing and status\n", + "-rw-r--r-- 1 sumi sumi 809 Aug 22 20:26 sample.md\n", + " 15 132 809 sample.md\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "bash: line 30: mdless: command not found\n" + ] + } + ], + "source": [ + "%%script bash\n", + "\n", + "# This example has error in VSCode, it run best on Jupyter\n", + "cd /tmp\n", + "\n", + "file=\"sample.md\"\n", + "if [ -f \"$file\" ]; then\n", + " rm $file\n", + "fi\n", + "\n", + "tee -a $file >/dev/null <>) redirection operator.\" >> $file\n", + "echo \"- The list definition, as is, is using space to seperate lines. Thus the use of commas and hyphens in output.\" >> $file\n", + "actions=(\"ls,list-directory\" \"cd,change-directory\" \"pwd,present-working-directory\" \"if-then-fi,test-condition\" \"env,bash-environment-variables\" \"cat,view-file-contents\" \"tee,write-to-output\" \"echo,display-content-of-string\" \"echo_text_>\\$file,write-content-to-file\" \"echo_text_>>\\$file,append-content-to-file\")\n", + "for action in ${actions[@]}; do # for loop is very similar to other language, though [@], semi-colon, do are new\n", + " action=${action//-/ } # convert dash to space\n", + " action=${action//,/: } # convert comma to colon\n", + " action=${action//_text_/ \\\"sample text\\\" } # convert _text_ to sample text, note escape character \\ to avoid \"\" having meaning\n", + " echo \" - ${action//-/ }\" >> $file # echo is redirected to file with >>\n", + "done\n", + "\n", + "echo \"\"\n", + "echo \"File listing and status\"\n", + "ls -l $file # list file\n", + "wc $file # show words\n", + "mdless $file # this requires installation, but renders markown from terminal\n", + "\n", + "rm $file # clean up termporary file" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Hack Preparation.\n", + "> Review Tool Setup Procedures and think about some thing you could verify through a Shell notebook.\n", + "- Come up with your own student view of this procedure to show your tools are installed. It is best that you keep the few things you understand, add things later as you start to understand them.\n", + "- Name and create blog notes on some Linux commands you will use frequently.\n", + "- Is there anything we use to verify tools we installed? Review versions?\n", + "- How would you update a repository? Use the git command line? \n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.10.6 64-bit", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.12" + }, + "vscode": { + "interpreter": { + "hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49" + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/index.md b/index.md index daaf162b8..5fc208830 100644 --- a/index.md +++ b/index.md @@ -2,14 +2,23 @@ layout: default title: Student Blog --- +## **How to write code** +Learning to code requires four core ideas. +1. Variables +-These are specifc values to write code. +2. Loops +-These are codes for repetition. +3. Conditionals +-These are if/then statements used to specify options available in a situation. +4. Functions +-These are words, numbers, or special characters in a particular combination which tells the computer how to perform a task. +## Coding is done using computer languages such as Python, Javascript, Swift, Ruby, C#, etc. +For example, Python writes variables in quotation marks such as: "1 2 3 4 5 6" or "Michael Jackson". -## Build you Home Page here -This is about your journey. Start now!!! +It also has functions such as \n (new line), \t (tab), and del (delete a variable) -## Overview of Hacks, Study and Tangibles -Blogging in GitHub pages is a way to learn and code at the same time. +Python has if/else statements such as -- Plans, Lists, [Scrum Boards](https://clickup.com/blog/scrum-board/) help you to track key events, show progress and record time. Effort is a big part of your class grade. Show plans and time spent! -- [Hacks(Todo)](https://levelup.gitconnected.com/six-ultimate-daily-hacks-for-every-programmer-60f5f10feae) enable you to stay in focus with key requirements of the class. Each Hack will produce Tangibles. -- Tangibles or [Tangible Artifacts](https://en.wikipedia.org/wiki/Artifact_(software_development)) are things you accumulate as a learner and coder. +If(:"Selected variable =1") print ("2") +else print ("3") diff --git a/indexBlogs.md b/indexBlogs.md index 58f501482..edcaf9a9b 100644 --- a/indexBlogs.md +++ b/indexBlogs.md @@ -2,4 +2,53 @@ layout: blogs permalink: /blogs title: Blogs ---- +--- +View my Github page [https://github.com/sumedhaKl] +## Blog +![The San Juan mountains are beautiful!](assets/images/san-juan-mountains.jpg "San Juan Mountains") + +So, what will our blog be about? +## Overview of Hacks, Study and Tangibles +Blogging in GitHub pages is a way to learn and code at the same time. +- Plans, Lists, [Scrum Boards](https://clickup.com/blog/scrum-board/) help you to track key events, show progress and record time. Effort is a big part of your class grade. Show plans and time spent! +- [Hacks(Todo)](https://levelup.gitconnected.com/six-ultimate-daily-hacks-for-every-programmer-60f5f10feae) enable you to stay in focus with key requirements of the class. Each Hack will produce Tangibles. +- Tangibles or [Tangible Artifacts](https://en.wikipedia.org/wiki/Artifact_(software_development)) are things you accumulate as a learner and coder. +ClickUpClickUp +How to Build and Use a Scrum Board (With Examples) | ClickUp +Want to learn about Scrum boards? This article highlights what they are, how to use them and how to build one. +Written by +Erica Chappell +Est. reading time +18 minutes +Apr 7th, 2022 +https://clickup.com/blog/scrum-board/ + +Medium] +15 Ultimate Daily Hacks for Every Programmer +You don’t need to import TensorFlow to print “hello world” +Reading time +7 min read +Apr 25th, 2021 (148 kB) +https://levelup.gitconnected.com/six-ultimate-daily-hacks-for-every-programmer-60f5f10feae + +Wikipedia +Artifact (software development) +An artifact is one of many kinds of tangible by-products produced during the development of software. Some artifacts (e.g., use cases, class diagrams, and other Unified Modeling Language (UML) models, requirements and design documents) help describe the function, architecture, and design of software. Other artifacts are concerned with the process of development itself—such as project plans, business cases, and risk assessments. +The term artifact in connection with software development is largely associated with specific development methods or processes e.g., Unified Process. This usage of the term may have originated with those methods. +Build tools often refer to source code compiled for testing as an artifact, because the executable is necessary to carrying out the testing plan. Without the executable to test, the testing plan artifact is limited to non-execution based testing. In non-execution based testing, the artifacts are the walkthroughs, inspections and correctness proofs. On the other hand, execution based testing requires at minimum two artifacts: a test suite and the executable. Artifact occasionally may refer to the released code (in the case of a code library) or released executable (in the case of a program) produced, but more commonly an artifact is the byproduct of software development rather than the product itself. Open source code libraries often contain a testing harness to allow contributors to ensure their changes do not cause regression bugs in the code library. +Much of what are considered artifacts is software documentation. +In end-user development an artifact is either an application or a complex data object that is created by an end-user without the need to know a general programming language. Artifacts describe automated behavior or control sequences, such as database requests or grammar rules, or user-generated content. +Artifacts vary in their maintainability. Maintainability is primarily affected by the role the artifact fulfills. The role can be either practical or symbolic. In the earliest stages of software development, artifacts may be created by the design team to serve a symbolic role to show the project sponsor how serious the contractor is about meeting the project's needs. Symbolic artifacts often convey information poorly, but are impressive-looking. Symbolic enhance understanding. Generally speaking, Illuminated Scrolls are also considered unmaintainable due to the diligence it requires to preserve the symbolic quality. For this reason, once Illuminated Scrolls are shown to the project sponsor and approved, they are replaced by artifacts which serve a practical role. Practical artifacts usually need to be maintained throughout the project lifecycle, and, as such, are generally highly maintainable. +Artifacts are significant from a project management perspective as deliverables. The deliverables of a software project are likely to be the same as its artifacts with the addition of the software itself. +The sense of artifacts as byproducts is similar to the use of the term artifact in science to refer to something that arises from the process in hand rather than the issue itself, i.e., a result of interest that stems from the means rather than the end. +To collect, organize and manage artifacts, a Software development folder may be utilized. +// POST: api/Todo +[HttpPost] +public async Task> PostTodoItem(TodoItem item) +{ + _context.TodoItems.Add(item); + await _context.SaveChangesAsync(); + + return CreatedAtAction(nameof(GetTodoItem), new { id = item.Id }, item); +} +Show less \ No newline at end of file diff --git a/scripts/__pycache__/convert_notebooks.cpython-310.pyc b/scripts/__pycache__/convert_notebooks.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3fc10475293c96f3c0003b301b6e199ac802b869 GIT binary patch literal 2749 zcmb7GU2hx572TQr;BrM$lq1JZ8W>E_6krNdNgjeWHC#KgixfzhqA6mSNU)_iBZu;G zm!26}BC#}FDCk?z9}pOzfWGuE&0Eoz_%A33l5>Y5P20#rcQKzkpXZ)??iTfW;^Fzj zzyB*fu6y49sImTVG;Sd2e!K#=C>x?7Hc@WMrfA;h>ZaU0@vu7k+@cE5@5ws74UrkVtL6 zdlq$u<4L}ER!jf1$#K>nNE;j!!`xmJ zQk!Akr^BaWsN}#DYGNaKJjBs$q~xf0DBHfRFYlG^4>M_->+@djp-unesaJ5pvk!K@ zE=F=kAC87Q5A~oBsGCC}bF-rdYB)A}XW)=D&#>!^C$=t?DpWeiWIsO~ZxUccp>5t^ zHP&FkPwFC?10v4y2~nXj4&8518G18bvN_D@ko8M{&V&ynZ%iA8^Xj^=RM&kz}{3!&z12UG$U)=@$SMJv*1xcvlq1^ zcI4J-SGqRR#i0V|-qgQ(_3BeP^HZY5^v&CJ$=0|J9_9C1cW-|BNo!vfxoM6120Z() z)lRH`Pa2zO(^p0x4Pnk;(jR5Es{8vg&5FLTp&n;LW2-dZt!Trs8s^49WPLpW5nxi& z4pkG|+F&5F%+}ma>0&4KDt%zm8EuhmQ_r?MHmW}`>H1(AtKUEtuo_Po=a*R!HGgQZ zm~FFw$B+3BL8yL%0nf32107W)XP*cF7_W4;5&pOSzZ96y4qz|ju*tW?{h$Pf2O(MK zgwK4c&!YwArg8$r%U~XpM|{a=;S5$171+eNJ8YYrdbePyQ+CM{$t7=ADJx}&GBz6r zwRzonT|;b$8vLy4`l@ELtfH0RWQnK??oL*pF|epv#tT~u@FVa}eCFlN_dG3*zyNyh zBHe-YmtV<0UugB4WNM1CHoGCDmm!ue}N-D;G}SEe#Sp+b)BW*-@Nm#_3z7x4IlQi z!?IL@_4MSe?VK1gz?8MZ+i1Z*G)|ULM_BHC9*!po6fbY81yrJy|Y?x8YOh2 zL`7IrRghVB)ZVf|F_yWF^S%8-fuS}~5=2kBpQXE>b-%d%*S|S>*^rp5tv@ctirmUx z08d9NB|$|OO6RHPJ&D5(&T@cl?(M0?}hL!79^OVv}qrXev9aPn{C zws>Lvy~M;QWZrImk2V_G3^BwZuUIt^r#9Vj4rrf(RKru0B0Zv2v+ zfKpEar-ATLSCU^sSyx)f9x+-4T8J8HVLRxaUEE#8%$Ae)7OdM+zs2_IHDv9IJE$T) zs}?e7mr+i|)SJ{t+-`GcBK0tk^};$H)+LJwrako2VD49nf}TIV&Qi_ z!Z?D)3a)4|!&K(@OId@9KjIG(fQ6F4aOYOu74TQttF((3HlR4hC)D-#hklnOn|=X01bXrALEmaQ|Q1j zPt*36x=kI`eD8dvg`>W{YIhFJFw-5m{EO0y!#huXA5#@YnuY!UL^X2P#f6Cf3&xNc zR~yrxPMWT9!?DDLv-sMm5Qmw(PGah$GWKe?LVW%Pe&EMEuEfpwN*u?v1V0)-1C)%S Ai~s-t literal 0 HcmV?d00001 From 3caee2abecea8a9eab7070ed259dee2750b32252 Mon Sep 17 00:00:00 2001 From: sumedhaKl <142531637+sumedhaKl@users.noreply.github.com> Date: Mon, 28 Aug 2023 18:56:51 -0700 Subject: [PATCH 02/18] Update index.md From 634aee2e1a99cd4a34afe4f2643aaff258374bb1 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 07:11:18 -0700 Subject: [PATCH 03/18] first commits From aeae9d1d16c7b07cb946b0c47415a62b2108f9ae Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 07:12:03 -0700 Subject: [PATCH 04/18] first commits --- _posts/scienceolympiadblog.md.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 _posts/scienceolympiadblog.md.md diff --git a/_posts/scienceolympiadblog.md.md b/_posts/scienceolympiadblog.md.md new file mode 100644 index 000000000..cda2737a8 --- /dev/null +++ b/_posts/scienceolympiadblog.md.md @@ -0,0 +1,18 @@ +--- +toc: true +layout: post +title: My science olympiad journey so far +description: Blog about science olympiad +--- + +## What is Science Olympiad? +Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. + +## My Journey up to now +I started Science Olympiad in seventh grade. However, I got eliminated from all of my events and didn't make the team. Next year, I tried harder and made the regional team. We went on to compete in the regional competition for Southern California. This was all during the pandemic and we had all the competitions online. During my freshman year, we had satellite competitions in which the competition was still held online, but we were physically doing the competition at the school site. + +## My tenth grade year +During my tenth grade year, however, we did Regionals physically. Del Norte came in second after several years! + +## What it has taught me +Participating in Science Olympiad has taught me how to work with others. I learned new stuff and how to work hard and plan. I feel overjoyed when I make the team and win a medal every year!! The medal makes it all worth it. \ No newline at end of file From a8ddb5234d74ebbb21202d5fdc99b64ad7cb9832 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 07:19:21 -0700 Subject: [PATCH 05/18] second commits --- index.md | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/index.md b/index.md index 5fc208830..75a865857 100644 --- a/index.md +++ b/index.md @@ -2,23 +2,14 @@ layout: default title: Student Blog --- -## **How to write code** -Learning to code requires four core ideas. -1. Variables --These are specifc values to write code. -2. Loops --These are codes for repetition. -3. Conditionals --These are if/then statements used to specify options available in a situation. -4. Functions --These are words, numbers, or special characters in a particular combination which tells the computer how to perform a task. +## What is Science Olympiad? +Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. -## Coding is done using computer languages such as Python, Javascript, Swift, Ruby, C#, etc. -For example, Python writes variables in quotation marks such as: "1 2 3 4 5 6" or "Michael Jackson". +## My Journey up to now +I started Science Olympiad in seventh grade. However, I got eliminated from all of my events and didn't make the team. Next year, I tried harder and made the regional team. We went on to compete in the regional competition for Southern California. This was all during the pandemic and we had all the competitions online. During my freshman year, we had satellite competitions in which the competition was still held online, but we were physically doing the competition at the school site. -It also has functions such as \n (new line), \t (tab), and del (delete a variable) +## My tenth grade year +During my tenth grade year, however, we did Regionals physically. Del Norte came in second after several years! -Python has if/else statements such as - -If(:"Selected variable =1") print ("2") -else print ("3") +## What it has taught me +Participating in Science Olympiad has taught me how to work with others. I learned new stuff and how to work hard and plan. I feel overjoyed when I make the team and win a medal every year!! The medal makes it all worth it. \ No newline at end of file From b6f556cb18737ac2ac61188b2352d3edc76e74d1 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 07:25:12 -0700 Subject: [PATCH 06/18] third commits --- index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.md b/index.md index 75a865857..5bcf2f70d 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,8 @@ --- +toc: true layout: default -title: Student Blog +title: My Science Olympiad Journey so far +description: Blog about Science Olympiad --- ## What is Science Olympiad? Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. From 5a2f41b9e0ea00d46341ea80a467ca19056e2abb Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 07:54:50 -0700 Subject: [PATCH 07/18] Fourth commits --- index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.md b/index.md index 5bcf2f70d..28dafffb2 100644 --- a/index.md +++ b/index.md @@ -4,6 +4,8 @@ layout: default title: My Science Olympiad Journey so far description: Blog about Science Olympiad --- +remote_theme: pages-themes/modernist@v0.2.0 + ## What is Science Olympiad? Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. From b0685c7c4b8f124307cfc20ee377c1cf5aaef296 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 07:56:22 -0700 Subject: [PATCH 08/18] fourth commits 2 --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index 28dafffb2..d88fdb73f 100644 --- a/index.md +++ b/index.md @@ -3,8 +3,8 @@ toc: true layout: default title: My Science Olympiad Journey so far description: Blog about Science Olympiad ---- remote_theme: pages-themes/modernist@v0.2.0 +--- ## What is Science Olympiad? Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. From 1af9ee975a349e1902c79d3b2f753b067cb4dff3 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 08:50:19 -0700 Subject: [PATCH 09/18] Fifth commits --- _posts/scienceolympiadblog.md.md | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 _posts/scienceolympiadblog.md.md diff --git a/_posts/scienceolympiadblog.md.md b/_posts/scienceolympiadblog.md.md deleted file mode 100644 index cda2737a8..000000000 --- a/_posts/scienceolympiadblog.md.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -toc: true -layout: post -title: My science olympiad journey so far -description: Blog about science olympiad ---- - -## What is Science Olympiad? -Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. - -## My Journey up to now -I started Science Olympiad in seventh grade. However, I got eliminated from all of my events and didn't make the team. Next year, I tried harder and made the regional team. We went on to compete in the regional competition for Southern California. This was all during the pandemic and we had all the competitions online. During my freshman year, we had satellite competitions in which the competition was still held online, but we were physically doing the competition at the school site. - -## My tenth grade year -During my tenth grade year, however, we did Regionals physically. Del Norte came in second after several years! - -## What it has taught me -Participating in Science Olympiad has taught me how to work with others. I learned new stuff and how to work hard and plan. I feel overjoyed when I make the team and win a medal every year!! The medal makes it all worth it. \ No newline at end of file From 986fc60434ae7ef43dfa3975e67bf4fe9cbf809f Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 08:51:23 -0700 Subject: [PATCH 10/18] Sixth commit --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index d88fdb73f..a805de83f 100644 --- a/index.md +++ b/index.md @@ -16,4 +16,4 @@ I started Science Olympiad in seventh grade. However, I got eliminated from all During my tenth grade year, however, we did Regionals physically. Del Norte came in second after several years! ## What it has taught me -Participating in Science Olympiad has taught me how to work with others. I learned new stuff and how to work hard and plan. I feel overjoyed when I make the team and win a medal every year!! The medal makes it all worth it. \ No newline at end of file +Participating in Science Olympiad has taught me how to work with others. I learned new stuff and how to work hard and plan. I feel overjoyed when I make the team and win a medal every year!! The medal makes it worth all the hard work. \ No newline at end of file From 8e85d8eeccfd04e4011161145ff4743999de50ee Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 11:55:13 -0700 Subject: [PATCH 11/18] seventh commit --- .ipynb_checkpoints/Untitled-checkpoint.ipynb | 31 ++ Untitled.ipynb | 59 +++ _data/scienceolympiadblog.md.md | 376 +++++++++++++++++++ 3 files changed, 466 insertions(+) create mode 100644 .ipynb_checkpoints/Untitled-checkpoint.ipynb create mode 100644 Untitled.ipynb create mode 100644 _data/scienceolympiadblog.md.md diff --git a/.ipynb_checkpoints/Untitled-checkpoint.ipynb b/.ipynb_checkpoints/Untitled-checkpoint.ipynb new file mode 100644 index 000000000..b70ba8fd9 --- /dev/null +++ b/.ipynb_checkpoints/Untitled-checkpoint.ipynb @@ -0,0 +1,31 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "0a9ba30a", + "metadata": {}, + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.12" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/Untitled.ipynb b/Untitled.ipynb new file mode 100644 index 000000000..87257870d --- /dev/null +++ b/Untitled.ipynb @@ -0,0 +1,59 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "1eecda94", + "metadata": {}, + "source": [ + "---\n", + "toc: true\n", + "layout: default\n", + "title: My Science Olympiad Journey so far\n", + "description: Blog about Science Olympiad\n", + "remote_theme: pages-themes/modernist@v0.2.0\n", + "---\n", + "\n", + "## What is Science Olympiad?\n", + "Science Olympiad is a competition between teams from different middle schools and high schools. It includes physical science, earth science, life science, chemistry, environmental science and forestry. Build events and study events are both included. \n", + "\n", + "## My Journey up to now\n", + "I started Science Olympiad in seventh grade. However, I got eliminated from all of my events and didn't make the team. Next year, I tried harder and made the regional team. We went on to compete in the regional competition for Southern California. This was all during the pandemic and we had all the competitions online. During my freshman year, we had satellite competitions in which the competition was still held online, but we were physically doing the competition at the school site.\n", + "\n", + "## My tenth grade year\n", + "During my tenth grade year, however, we did Regionals physically. Del Norte came in second after several years!\n", + "\n", + "## What it has taught me\n", + "Participating in Science Olympiad has taught me how to work with others. I learned new stuff and how to work hard and plan. I feel overjoyed when I make the team and win a medal every year!! The medal makes it worth all the hard work." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6348b5bf", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.12" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/_data/scienceolympiadblog.md.md b/_data/scienceolympiadblog.md.md new file mode 100644 index 000000000..b24b0f296 --- /dev/null +++ b/_data/scienceolympiadblog.md.md @@ -0,0 +1,376 @@ +--- +title: Classic Snake Game +layout: base +description: A pretty advanced use of JavaScript building classic snake game using menu controls, key events, snake simulation and timers. +permalink: /frontend/snake +image: /images/snake.png +categories: [C4.9] +tags: [javascript] +--- + +{% include nav_frontend.html %} + + + + +
+
+

Snake score: 0

+
+
+ + + +
+

Game Over, press space to try again

+ new game + settings +
+ + + +
+

Settings Screen, press space to go back to playing

+ new game +
+

Speed: + + + + + + +

+

Wall: + + + + +

+
+
+
+ + From bb62fffc3978e0e4528a50faf3bee283fdaecc1d Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 11:57:34 -0700 Subject: [PATCH 12/18] eighth commit --- _data/scienceolympiadblog.md.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_data/scienceolympiadblog.md.md b/_data/scienceolympiadblog.md.md index b24b0f296..c3bd2e356 100644 --- a/_data/scienceolympiadblog.md.md +++ b/_data/scienceolympiadblog.md.md @@ -1,6 +1,7 @@ --- -title: Classic Snake Game +toc: true layout: base +title: Classic Snake Game description: A pretty advanced use of JavaScript building classic snake game using menu controls, key events, snake simulation and timers. permalink: /frontend/snake image: /images/snake.png From 1c145c4b1ceb93a624d0fca9fb34394ad3f1c4e0 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 12:03:48 -0700 Subject: [PATCH 13/18] ninth commit From 38999fa3cdfaad885c80247740706090cb0da519 Mon Sep 17 00:00:00 2001 From: sumedhaKl Date: Mon, 28 Aug 2023 12:04:35 -0700 Subject: [PATCH 14/18] tenth commit --- _data/scienceolympiadblog.md.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/_data/scienceolympiadblog.md.md b/_data/scienceolympiadblog.md.md index c3bd2e356..c77e30005 100644 --- a/_data/scienceolympiadblog.md.md +++ b/_data/scienceolympiadblog.md.md @@ -8,9 +8,6 @@ image: /images/snake.png categories: [C4.9] tags: [javascript] --- - -{% include nav_frontend.html %} - + + +
+
+

Snake score: 0

+
+
+ + + +
+

Game Over, press space to try again

+ new game + settings +
+ + + +
+

Settings Screen, press space to go back to playing

+ new game +
+

Speed: + + + + + + +

+

Wall: + + + + +

+
+
+
+ + From bb0c5844c8c644f2095ae45a3f329149e700c1e3 Mon Sep 17 00:00:00 2001 From: sumedhaKl <142531637+sumedhaKl@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:49:41 -0700 Subject: [PATCH 16/18] Update scienceolympiadblog.md.md From ad4ac4aa2463f978b629b65af4ce520248d388dc Mon Sep 17 00:00:00 2001 From: sumedhaKl <142531637+sumedhaKl@users.noreply.github.com> Date: Wed, 30 Aug 2023 18:18:47 -0700 Subject: [PATCH 17/18] Update index.md --- index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.md b/index.md index 4d3ba1018..f3486dc68 100644 --- a/index.md +++ b/index.md @@ -10,14 +10,12 @@ categories: [C4.9] tags: [javascript] ---