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
{ | |
"keys": ["ctrl+alt+t"], | |
"command": "set_setting", | |
"args": { | |
"setting": "font_options", | |
"value": ["gray_antialias"] | |
} | |
}, | |
{ | |
"keys": ["ctrl+alt+shift+t"], |
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
var activeCounter = 0, | |
$acitivityMsgs = $('.progress-bar').find('.message'), | |
$activeMsg = $acitivityMsgs.filter('.active'), | |
totalMessages = $acitivityMsgs.length, | |
activityTimer = 5000; | |
function activityAdvance(){ | |
if (activeCounter < totalMessages-1){ | |
$activeMsg = $activeMsg.fadeOut('slow').removeClass('active').next().fadeIn('fast').addClass('active'); | |
// activeCounter = $activeMsg.index('.message') + 1; |
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() { | |
var uploadFileNames = '&'; | |
$("#file_upload").uploadify({ | |
'swf': '/uploadify/uploadify.swf', | |
'uploader': '/uploadify/uploadify.php', | |
'onUploadSuccess': function(file, data, response) { | |
alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data); | |
uploadFileNames += 'fileNames[]=' + file.name + '&'; | |
}, | |
'onQueueComplete': function(queueData) { |
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
$('.warfarin-box-right').each(function(index, element) { | |
$(this).find('p').each(function(i,el) { | |
var $currentParent = $(this).parent(); | |
var medProp = $(el).html().split(':'); | |
var medPropName = $('<span />', { "class" : "medPropLeft", text: medProp[0] + ":" }); | |
var medPropDesc = $('<p />', | |
{ "class" : "medPropRight", | |
html: (function() { | |
var textToOutput = ""; | |
for (var i = 0; i < medProp.length; i++) { |
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'; |
NewerOlder