Skip to content

Instantly share code, notes, and snippets.

View nathaniel-miller's full-sized avatar

Nathaniel Miller nathaniel-miller

View GitHub Profile
@nathaniel-miller
nathaniel-miller / 00 basic linux and shell.md
Last active December 31, 2015 06:43
Basic Linux and Shell

The Rails Prime stack runs on a Unix stack, which is to say that all production hardware (and most people's personal workstations) are some variant of that system. As such, you'll need to understand some basic Unix utilities to control your development environment.

MASTER
|
|__________ADD-TURTLE #from master, create branch add-turtle
| |
| x #add turtle pic and caption to index.html
| |
|_______________x #merge add-turtle into master.
|
|__________ADD-WALRUS #from master, create branch add-walrus
| |

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@nathaniel-miller
nathaniel-miller / file1.txt
Created September 19, 2016 20:30
a gist for a user with token api call via ajax
String file contents via ajax
@nathaniel-miller
nathaniel-miller / github-gist-api.js
Created September 19, 2016 20:33 — forked from techslides/github-gist-api.js
GitHub API to make Gists with Ajax
/*
Assuming jQuery Ajax instead of vanilla XHR
*/
//Get Github Authorization Token with proper scope, print to console
$.ajax({
url: 'https://api.github.com/authorizations',
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", "Basic " + btoa("USERNAME:PASSWORD"));
@nathaniel-miller
nathaniel-miller / file_name
Created September 19, 2016 20:51
A test description
This is a test
@nathaniel-miller
nathaniel-miller / file_name
Created September 19, 2016 21:01
A test description
This is a test
@nathaniel-miller
nathaniel-miller / file_name
Created September 19, 2016 21:02
A test description
This is a test
@nathaniel-miller
nathaniel-miller / file_name
Created September 19, 2016 21:07
A test description
This is a test
@nathaniel-miller
nathaniel-miller / thign
Created September 19, 2016 22:40
thign
things