This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
## ZSH | |
######################### | |
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="ys" | |
######################### | |
## PLUGINS | |
######################### | |
plugins=(git npm node sublime) |
NewerOlder