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
/*! | |
* domready (c) Dustin Diaz 2012 - License MIT | |
*/ | |
var domReady = (function (ready) { | |
var fns = [], fn, f = false | |
, doc = document | |
, testEl = doc.documentElement | |
, hack = testEl.doScroll | |
, domContentLoaded = 'DOMContentLoaded' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>content</key> | |
<string>@extend %$0;</string> | |
<key>name</key> | |
<string>% Shortcut to Placeholder</string> | |
<key>scope</key> | |
<string>source.scss</string> |
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
brew update | |
brew install rbenv | |
brew install ruby-build | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
exec $SHELL | |
rbenv install 1.9.3-rc1 | |
rbenv rehash | |
rbenv global 1.9.3-rc1 | |
exec $SHELL |
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
curl -L https://raw.github.com/gist/3880960/db03e2ba7e519f7431f35aaddcf4a5899669aec4/revert-safari-inspector.sh | bash |
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
npm list -g | awk '/@/ {print $2}' | grep '@' | awk -F@ '{print $1}' | xargs npm -g uninstall |
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
pip install git+ssh://[email protected]/ff0000/django-start.git --upgrade |
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
@mixin animation($animation, $animation-2: none, $animation-3: none) { | |
@each $prefix in webkit, moz, ms { | |
#{""}-#{$prefix}-animation: $animation, $animation-2, $animation-3; | |
} | |
} | |
@mixin animation-name($name) { | |
@include experimental(animation-name, $name); | |
} |
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
BRANCH=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'); git config branch.$BRANCH.remote origin; git config branch.$BRANCH.merge refs/heads/$BRANCH |
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
# enable | |
sudo ipfw pipe 1 config bw 50KBytes/s delay 100ms | |
sudo ipfw add 1 pipe 1 src-port 80 | |
sudo ipfw add 2 pipe 1 dst-port 80 | |
# disable | |
sudo ipfw delete 1 | |
sudo ipfw delete 2 |
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
#!/bin/sh | |
# Check to see if we are on master branch. Stop accidental commits | |
if [ $(git symbolic-ref HEAD 2>/dev/null) == "refs/heads/master" ] | |
then | |
if [ -f i_want_to_commit_to_master ] | |
then | |
rm i_want_to_commit_to_master | |
exit 0 | |
else | |
echo "Cannot commit to master branch" |