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)) |
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
@WIDTH: 400px; | |
@Y: 100px; | |
div#container { | |
width: @WIDTH; | |
margin: auto; | |
position: relative; | |
.persepective(350px); | |
.origin(@WIDTH * 0.5, @Y); | |
.preserve3d(); |
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 LetterTracking | |
constructor: ($target) -> | |
$target.each((i, elem)=> | |
$elem = $(elem) | |
aTag = $elem.find('a'); | |
if (@hasATag(aTag)) | |
$elem = aTag | |
text = $elem.text() | |
spanText = @wrapSpan(text) |