You can use github to create and submit your solutions to these problems.
One of the most basic ways to get started with using git and github is to simply create and edit files and directories directly at the github.com web page.
We’ll invite you to use github.com to create, edit and submit your solutions to the APS Homework assignments.
To get started, create a private github repo under the ucsd-cse-spis-2016 organization that has this name:
Use the names and initials from the pairs list, which we have updated with the preferred first name you gave us on the github survey. For example:
This image shows how to set up the repo at the github.com/new page:
In this repository, we’ll invite you to create files called
Week4.md for each of the four APS homework
assignments you’ll complete during the SPIS Program. We’ll
explain how to create each of those below.
Week1.md, click on the + sign at the location shown in the image below.
(Note: these images are from last year, so it shows 2015 instead of 2016. But I’m sure you won’t let that confuse you. :-) ).
Then enter the name
Week1.md, and type the first line of your solution (basically, an introduction).
Finally, scroll down the web page, and find the button for “Commit New File”.
Editing the Week1.md file
You should then be able to click on your Week1.md file and see the content in the github.com webpage, as shown in the examples below.
You can click the pencil icon to make further edits.
Editing a Markdown File
In the github.com interface, any filename that ends with .md is treated as a “Markdown” file.
Markdown is a way of formatting text for web pages that is designed to be than HTML (HTML is a “Markup” language—”Markdown” is a pun on “Markup”.)
For the most part, in a Markdown file, you just type normal text, leaving a blank line between paragraphs.
There are a few special characters though. This is not a complete list—these are just a few examples.
|What you want to do||How you type it|
|Make some bold text||
|Make some italic text||
|Insert the lowercase greek letter α||
|Insert the capital greek letter Φ||
|Use superscript to show x2||
|Use subscript for xi||
To see if your text is being formatted the way you want before you save, you can switch back and forth between: Edit and Preview Changes:
To save those changes, click Commit:
What can you do in a Markdown file?
Suppose you want a bullet list such as this one:
- First you do this.
- Then you do that.
- Then, finally you do something else.
You can make that by formatting it with stars in place of the bullets. (Don’t leave blank spaces at the start of a line though, or it will look like code; the star followed by a space should be the first thing on the line.)
* First you do this. * Then you do that. * Then, finally you do something else.
You can learn a lot more about the things you can do in Markdown here at this guide:
Suppose I want a picture
If you want an image, as long as it is already on the web, its easy. Just paste in the URL of the image, and it will appear in the Markdown file as an image.
As an example, suppose you are solving an APS problem related to making change, and you want to include a diagram that shows two nickels (5 cent coins) and three pennies (1 cent coins). You might want this picture to be in your Markdown file:
Maybe you already have that picture on the web somewhere. Or maybe you draw it on paper, take a picture with your phone, and upload that .jpg or .png file into your github repo. Then linking to it works just like the way we linked to your photo in lab00.
But, if you don’t already have a picture, one easy way to create one is with Google Drawings, as explained here: Github: Google Drawings in Markdown files.