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
(function(){ | |
//jasmine "it" function fix for async, adding another parameter to support promises and augment waitsFor. | |
var generate_promise = function() { | |
var promise = { | |
check_for: false, | |
waits: function() { | |
waitsFor(function() { | |
return promise.check_for; | |
}); | |
}, |
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
COFFEE_EXEC = '/Users/leon/code/resources/CoffeeScriptRedux/bin/coffee' #https://github.com/michaelficarra/CoffeeScriptRedux/ | |
def create_js(source) | |
target = "#{File.dirname(source)}/js/#{File.basename(source, '.coffee')}.js" | |
puts "#{COFFEE_EXEC} --js -i #{source} > #{target}" | |
%x{#{COFFEE_EXEC} --js -i #{source} > #{target}} | |
puts "#{COFFEE_EXEC} --source-map -i #{source} > #{target}.map" | |
%x{#{COFFEE_EXEC} --source-map -i #{source} > #{target}.map} |
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
/** | |
This is the code from a presentation given in the II JS meetup TLV, | |
for lulz use only. - http://www.meetup.com/telavivjs/events/50068512/ | |
comments: twitter.com/leonFedotov | |
________ | |
< o HAI! > | |
-------- | |
\ ^__^ | |
\ (oo)\_______ |
NewerOlder