Skip to content

Instantly share code, notes, and snippets.

View joelgriffith's full-sized avatar
💻
Turns out I'm really good at computers

Joel Griffith joelgriffith

💻
Turns out I'm really good at computers
View GitHub Profile
@joelgriffith
joelgriffith / gist:7000453
Last active December 25, 2015 15:48
Helpful git commands
# Add a remote repository at URL named NAME
git remote add NAME URL
# Show me my local branches
git branch -a
# Show me my remote repositories
git remote -v
# Create a new local branch with NAME and switch to it
@joelgriffith
joelgriffith / gist:6771841
Created September 30, 2013 23:32
Cors Handler
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// Check if the XMLHttpRequest object has a "withCredentials" property.
// "withCredentials" only exists on XMLHTTPRequest2 objects.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
@joelgriffith
joelgriffith / .zshrc
Last active December 21, 2015 07:18
Zero Shell Preferences
#########################
## ZSH
#########################
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="ys"
#########################
## PLUGINS
#########################
plugins=(git npm node sublime)