This file contains 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
console.log('100', 'something'); | |
console.log(100, 'something'); | |
console.log(100, 'something', 'something else'); | |
console.log(100 + ' something'); | |
console.log('something', 100, 'something'); |
This file contains 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
tell application "System Events" | |
set x to application bindings of spaces preferences of expose preferences | |
set x to {|com.twitter.twitter-mac|:3} & x -- 3 is any space you don't want twitter on | |
set application bindings of spaces preferences of expose preferences to x | |
set x to {|com.twitter.twitter-mac|:4} & x -- 4 is the space you want twitter to be on | |
set application bindings of spaces preferences of expose preferences to x | |
end tell |
This file contains 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
#!/usr/bin/env ruby | |
# Load Rails | |
ENV['RAILS_ENV'] = ARGV[0] || 'production' | |
DIR = File.dirname(__FILE__) | |
require DIR + '/../config/environment' | |
# ... do stuff that requires using your rails models |
This file contains 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
/*! | |
* Fade Out element and remove from DOM | |
*/ | |
(function($) | |
{ | |
$.fn.fadeOutAndRemove = function(duration) | |
{ | |
duration = (duration === undefined) ? 250 : duration; | |
return this.fadeOut(duration, function() |
NewerOlder