Skip to content

Instantly share code, notes, and snippets.

@humanman
Last active September 28, 2015 19:29
Show Gist options
  • Select an option

  • Save humanman/b58d1154d150aebc537c to your computer and use it in GitHub Desktop.

Select an option

Save humanman/b58d1154d150aebc537c to your computer and use it in GitHub Desktop.

Markup markdown, rehash bash, and get the gist

Today we want you to get comfortable using markdown syntax, solidify your understanding of bash commands, and become aquainted with github gists.

bash

Setup

Work in the w01/d01 directory. Create a new directory called homework in which all of the following files will be created.

Completion

EMAIL TO BOTH BEN AND DAVID!!!! [email protected], [email protected]

Finish all the parts! Tonight's homework is a little different than usual, in that you need to do all 4 parts. In the furture, homework will have a certain number of parts that you must finish for the homework to be considered complete, plus extra parts that we encourage you to do to get extra practice. The more practice you get the better - but being healthy is best so get some sleep.

Part 1

Read the original markdown docs, and then read the github flavored markdown docs. Do some research about the history of markdown, start with wikipedia... Also read the markdown cheatsheet we made for you.

Part 2

Read about Github Gists on github.

Part 3

Watch this TED Talk about Grit. Create a markdown file called grit.md in your homework directory from the terminal, and write about your reflections on the video. Make sure to use markdown syntax, and alter the text/font in ways that AREN'T covered in the cheatsheet. To check what your markdown formatting looks like, start a gist, change its language to markdown, paste your text into the gist, and when you create the gist you will see your text rendered with markdown. You can edit the gist and see how changing the markdown syntax changes what the gist looks like.

Part 4

Make another markdown file called bash_cheatsheet.md in the homework directory and make yourself a cheatsheet about bash commands. At a minimum, include the commands to:

  • create a directory
  • create a file
  • move a file
  • move a directory
  • rename a file
  • rename a directory
  • delete a file
  • delete a directory
  • move around within a directory
  • see what files and directories exist
  • check where in the directory structure you are.

Be as complete as possible and expand on this list; your cheatsheet will be a great resource for you from now on. This is another opportunity to practice markdown, so include a table, a list (ordered or unordered), and a link.

Part 5

Create a gist, give it a name, and change its language to markdown. Put the following questions and your answers to the questions into the gist. Format it fully with markdown. Create a markdown file called gist.md in the homework directory with the link to your gist.

Questions:

  1. Why do we use markdown? What is its value?
  2. Why use gists?
  3. What is a backtick used for?
  4. How would you include backtick(s) in a code snippet?
  5. How would you include an image in a markdown file? How about a video? Show us!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment