diff --git a/PVL_2020_ENCH470_Lecture_17_Intro_to_GitHub.ipynb b/PVL_2020_ENCH470_Lecture_17_Intro_to_GitHub.ipynb new file mode 100644 index 0000000..cd697f0 --- /dev/null +++ b/PVL_2020_ENCH470_Lecture_17_Intro_to_GitHub.ipynb @@ -0,0 +1,133 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# ENCH 470 Fall 2020 Lecture 17: Intro to GitHub\n", + "\n", + "GitHub is an important tool used in industry and academia for version control. Here's a test file we'll use to explore version control in GitHub.\n", + "\n", + "** First problem: ** follow the instructions from the [GitHub Guide](https://guides.github.com/activities/hello-world/) to create your account and make a repository. \n", + "\n", + "** Second problem: ** Clone my repository into your GitHub.\n", + "\n", + "** Third problem: ** Add or modify some code in this document, and open a pull request.\n", + "\n", + "** Fourth problem: ** Working with someone else in the class, create a repo and/or make a change to someone else's repo." + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 2, 3, 8]\n" + ] + } + ], + "source": [ + "# Here's a simple code block from our first lecture:\n", + "\n", + "x=1\n", + "y=2\n", + "z=3\n", + "q=x*y**z \n", + "qxyz = [x,y,z,q]\n", + "print(qxyz)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "79030286450404\n" + ] + } + ], + "source": [ + "# I added a comment\n", + "Newvariable = 8889898\n", + "print(Newvariable**2)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "chicken burito\n", + "chicken bone broth\n", + "chicken taco\n", + "beef burito\n", + "beef bone broth\n", + "beef taco\n" + ] + } + ], + "source": [ + "for x in ['chicken','beef']:\n", + " for y in ['burito','bone broth','taco']:\n", + " print(x,y)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "I Like Chicken Burito\n" + ] + } + ], + "source": [ + "print ('I Like Chicken Burito')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "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.8.5" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +}