ここに全部書いてます
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
brew install autoconf | |
brew install automake | |
brew install libtool | |
brew install nasm | |
brew install apple-gcc42 | |
cd /usr/local/src/ | |
git clone git@github.com:mozilla/mozjpeg.git | |
cd mozjpeg/ | |
git checkout v1.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
module.exports = (grunt) -> | |
grunt.initConfig | |
sprite: | |
common: | |
files: | |
'assets/img': 'assets/img/common/*.*' | |
options: | |
name: 'common' |
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 dependencies. | |
*/ | |
var exec = require('child_process').exec; | |
var images = [ | |
'bowl.jpeg' | |
, 'case.jpeg' |
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 express = require('express') | |
, app = express.createApplication(); | |
app.get('/', function(req){ | |
req.render('index').replace('#content'); | |
}); | |
app.get('/list', function(req){ | |
req.render('todo/list', { items: items }) | |
.replace('#content'); |
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
/* css only preload */ | |
.foobar:after{ | |
content: ''; | |
width:0; | |
height:0; | |
position:absolute; | |
left:-9999px; | |
background:url(../images_v2/arrows/up.png); | |
} |
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
app.dynamicHelpers({ | |
scripts: function(){ | |
return []; | |
} | |
}); |
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
app.dynamicHelper({ | |
path: function(req){ | |
return req.route.path; | |
} | |
}); |
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
<script type="text/javascript"> | |
// http://ma.la/jquery_xss/ | |
(function($){ | |
var _init = $.fn.init; | |
$.fn.init = function(selector, context, rootjQuery){ | |
// note: only block "#<img>", "a[href=<img onerror=...>]" still work. | |
if( typeof arguments[ 0 ] == "string" && /^#.*</.test( arguments[ 0 ] ) ){ | |
throw new Error( "selector error" ); | |
} | |
// console.log(arguments[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
%w!ubygems scissor/echonest pit open-uri tempfile!.each {|g| require g } | |
Scissor.logger.level = Logger::DEBUG | |
Scissor.echonest_api_key = Pit.get('echonest.com', :require => { | |
'api_key' => 'your Echo Nest API key' | |
})['api_key'] | |
infile, outfile = ARGV | |
file = Tempfile.new(%w/amen .wav/) |
OlderNewer