kjankov / lecture-demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lecture-demos

Lecture demos for CS 2043.

You are in no way expected to complete all of these exercises, they are here for you to experiment if you want to. We will begin the exercise at the end of class, and I will release a solution (not the only solution) at some point soon after the demo is presented during class.

If you are uninterested, have something else you need to do, finish early, etc, you do not have to stay until class is done. Use these demos as a resource.

Contributions are welcome in the form of Pull Requests.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

How do I get this on my computer?!

Initially, you will have to clone this repository. The following example shows you how to put it on your Desktop, but you can have it anywhere you want.

$ cd ~/Desktop/
$ git clone https://github.com/cs2043-sp17/lecture-demos.git

You now have the folder ~/Desktop/lecture-demos/. To work on a specific exercise, simply cd into the directory. For example, if you want to work on the exercise for lecture 3, you will find it at

$ cd ~/Desktop/lecture-demos/lec03/

Since you were already at ~/Desktop/, though, you could also just cd lecture-demos/lec03 to work on that specific exercise.

When the next lecture's demo is added, how do I get it?

You now have a local copy of the demo repository on your computer. Unlike Dropbox, git does not automatically download things for you. Remember that .git/ folder? That is where the magic happens. Do not ever change, delete, or add anything in this folder. When you do

$ cd ~/Desktop/lecture-demos/
$ ls -al

you will see the .git folder. This means that you are at the top-level directory of a git repository. Now you can issue the

$ git pull

command, and if the remote server has any updates on it you will be able to download them locally. As long as you are in the lecture-demos or any of its subdirectories, you can execute the above command to get new files!

About


Languages

Language:Shell 99.6%Language:TeX 0.4%