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
js2coffee = require 'js2coffee' | |
glob = require "glob" | |
fs = require "fs" | |
glob "{*.js,!(node_modules)/**/*.js}", null, (er, files) -> | |
converted = [] | |
for file in files | |
newName = file.substr(0, file.lastIndexOf('.')) + '.coffee' |
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
-define=CONFIG::debug,true -define=CONFIG::release,false -default-size 950 600 -default-frame-rate 48 -default-background-color 0 |
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
$.ajax | |
url: "#{url}" | |
dataType: "jsonp" | |
jsonp: false | |
cache: false | |
jsonpCallback: 'callback' | |
success: (data) -> | |
console.log 'success', data | |
error: (data) -> | |
console.log 'err' |
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
class Unko | |
count: 0 | |
start: -> | |
@loop() | |
loop: -> | |
setTimeout => | |
@count++ | |
console.log(@count); |
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
{ | |
"meta" : | |
{ | |
"status" : 200, | |
"msg" : "OK" | |
}, | |
"response" : | |
[ | |
{ | |
"original_filename" : "_wn.gif", |
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
files: ['**/*.js', '!public/**/*.js', '!node_modules/**/*.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
{ | |
"meta" : | |
{ | |
"status" : 200, | |
"msg" : "OK" | |
}, | |
"response" : | |
[ | |
{ | |
"original_filename" : "test_shoot2_400-df.gif", |
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
fs = require 'fs' | |
_ = require 'underscore' | |
$ = require 'jquery' | |
_mergeConfig = (base, merge)-> | |
base = _.clone(base) | |
result = $.extend(true, {}, base, merge); | |
return result |
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
var bodyW = $('body').css('width'); | |
var css = document.styleSheets.item(0); | |
var idx = document.styleSheets[0].cssRules.length; | |
css.insertRule("body.android #fb-root .fb_dialog_mobile iframe { width:" | |
+ bodyW + " !important; }", idx); |
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
clone = (obj)-> | |
return JSON.parse(JSON.stringify(obj)) |
OlderNewer