Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mcdemarco on github.
  • I am mcdemarco (https://keybase.io/mcdemarco) on keybase.
  • I have a public key ASD8_r10FpFW39KvheEW4qLpMxSglK8KxIGwQr4oYkrqmgo

To claim this, I am signing this object:

@mcdemarco
mcdemarco / colored_git_prompt.sh
Last active August 29, 2015 14:15
Colored prompt with git branch, on Mavericks
# Add to your ~/.bash_profile.
export TERM=xterm-256color
#Get the git prompt code in a special Mavericks way.
#http://stackoverflow.com/a/20211241
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
fi
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
@mcdemarco
mcdemarco / main.js
Created August 6, 2013 16:25 — forked from duerig/main.js
Example paste application for app.net
var api = {
accessToken: 'YOUR_TOKEN'
};
var pasteChannel = null;
function initialize()
{
$('#paste-create').hide();
var getvars = getUrlVars();