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
grunt.initConfig | |
md2html: | |
build: | |
files: [ | |
expand: true, | |
cwd: 'src/jade', | |
src: ['**/*.md'], | |
dest: 'src/jade', | |
ext: '.html' | |
] |
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 'lodash' | |
module.exports = (grunt) -> | |
grunt.loadNpmTasks 'grunt-contrib-jade' | |
require('./src/config/jade.config.coffee')(_) | |
jadeOptions = require './src/config/base.config.coffee' | |
grunt.initConfig |
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
grunt.initConfig | |
concat: | |
lib: | |
files: | |
'www/common/js/lib.js' : [ | |
'src/js/vendors/jquery/jquery.min.js' | |
'src/js/vendors/modernizr/modernizr.js' | |
] | |
'www/common/js/vendors/easeljs-0.6.0.min.js' : [ | |
'src/js/vendors/EaselJS-release_v0.6.0/lib/easeljs-0.6.0.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
module.exports = (grunt) -> | |
grunt.loadNpmTasks 'grunt-contrib-watch' | |
grunt.loadNpmTasks 'grunt-ftp-deploy' | |
ftpSettings = | |
auth: | |
host: "hogehoge.com" | |
port: 21 | |
authKey: "hogehogekey" | |
src: "www" |
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) |
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
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
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
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
{ | |
"meta" : | |
{ | |
"status" : 200, | |
"msg" : "OK" | |
}, | |
"response" : | |
[ | |
{ | |
"original_filename" : "test_shoot2_400-df.gif", |