During SPIS, you’ll be given four APS problem sets: APS1, APS2, APS3, and APS4.

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:

new aps repo

In this repository, we’ll invite you to create files called Week1.md, Week2.md, Week3.md and 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.

Creating Week1.md

To create 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”.

type Week1.md in box and type first line of file content

click here to commit a 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.

click Week1.md to see the file you created

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       
 Headings # This is a heading
 Make some bold text  Make some **bold** text
 Make some italic text  Make some *italic* text
 Insert the lowercase greek letter α  Insert the greek letter α
 Insert the capital greek letter Φ  Insert the capital greek letter Φ
 Use superscript to show x2  Use superscript to show x<sup>2</sup>
 Use subscript for xi  Use subscript to show x<sub>i</sub>

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:

edit and preview changes

click preview changes to see how changes will look

To save those changes, click Commit:

click commit to save your work

What can you do in a Markdown file?

Suppose you want a bullet list such as this one:

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:

https://help.github.com/articles/markdown-basics/

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.

https://ucsd-cse-spis-2016.github.io/topics/github_aps_writeups/</div>