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
$('input[placeholder]').each(function() | |
{ | |
var input = $(this); | |
$(input).val(input.attr('placeholder')).addClass('placeheld'); | |
$(input).focus(function() { | |
if (input.val() == input.attr('placeholder')) | |
input.val('').removeClass('placeheld'); | |
}); |
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
[user] | |
name = John Doe | |
email = [email protected] | |
[color] | |
ui = true | |
status = auto | |
branch = auto | |
[alias] | |
st = status |
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
# Xcode | |
open http://itunes.apple.com/us/app/xcode/id497799835?mt=12 | |
# Homebrew | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
# Git | |
brew install git | |
# Git Flow |
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
# Xcode | |
open http://itunes.apple.com/us/app/xcode/id497799835?mt=12 | |
# Homebrew | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
# Git | |
brew install git | |
# Git Flow |
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 bitlyfi(url, func) { | |
// Put your own login and apiKey | |
var defaults = { | |
login: '', | |
apiKey: '', | |
longUrl: url | |
}; | |
// Build the URL to query | |
var bitly = "http://api.bit.ly/v3/shorten?" + "&login=" + defaults.login + "&apiKey=" + defaults.apiKey + "&longUrl=" + defaults.longUrl + "&format=json&callback=?"; |
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
// On http://imgur.com/a/EYCTw | |
// Open Console | |
var downloadString = ''; | |
$('.image-hover.download a').each(function(i){ | |
downloadString += 'echo "Downloading '+ (i+1) + '.jpg..."\n\r'; | |
downloadString += 'curl -L http://www.imgur.com' + $(this).attr('href') +' -o '+ (i+1) + '.jpg\n\r'; | |
downloadString += 'echo "Finished! Waiting 3 seconds before continuing..."\n\r'; | |
downloadString += 'echo \n\r'; | |
downloadString += 'sleep 3 \n\r'; |