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
getScript = jQuery.getScript; | |
jQuery.getScript = ( resources, callback )-> | |
deferreds = [] | |
counter = 0 | |
for resource in resources deferreds.push getScript( resource, -> counter++ ) | |
jQuery.when.apply( null, deferreds ).then -> callback && callback(); | |
deps = [ | |
"http://documentcloud.github.com/backbone/backbone-min.js", |
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
require 'osx/cocoa' | |
include OSX | |
class Screen | |
class << self | |
def resize(width, height, &block) | |
new.resize(width, height, &block) | |
end | |
end |
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
require 'osx/cocoa' | |
class Screen | |
class << self | |
def resize(width, height, &block) | |
new.resize(width, height, &block) | |
end | |
end | |
def initialize(screen = OSX::CGMainDisplayID()) |
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
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" |