Skip to content

Instantly share code, notes, and snippets.

View nathaniel-miller's full-sized avatar

Nathaniel Miller nathaniel-miller

View GitHub Profile

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 / 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"));