This file contains hidden or 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
Dir.glob("**/*.png").each do |file| | |
['pngnq -e .png -f', 'pngquant -f -speed 1 -ext .png', 'pngcrush'].each do |command| | |
puts "#{command} #{file}" | |
`#{command} #{file}` | |
end | |
end |
This file contains hidden or 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
guard :shell do | |
watch(%r{-hd\.png$}) do |m| | |
input = m[0] | |
output = input.gsub(/-hd.png$/,'.png') | |
puts "Downsizing #{input} to #{output}" | |
`convert #{input} -resize 50% #{output}` | |
end | |
end |
This file contains hidden or 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
/usr/local/Cellar/autoconf213/2.13/bin/autoconf213 |
This file contains hidden or 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
https://github.com/probablycorey/seriously | |
http://aws.amazon.com/sdkforios/ | |
http://restkit.org/ | |
http://projects.lukeredpath.co.uk/resty/ | |
https://github.com/gowalla/AFNetworking | |
http://getsharekit.com/ | |
https://github.com/pokeb/asi-http-request | |
https://github.com/robbiehanson/CocoaAsyncSocket |
This file contains hidden or 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
exts= [ | |
'CCBigImage', | |
'CCLayerPanZoom', | |
'CCMenuAdvanced', | |
'CCMenuItemSpriteIndependent', | |
'CCScrollLayer', | |
'CCSendMessages', | |
'CCSlider', | |
'CCVideoPlayer', | |
'FilesDownloader', |
This file contains hidden or 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
import Erlang.mochijson2 | |
Erlang.mochijson2.decode "[1,2,3]" |
This file contains hidden or 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
au BufRead,BufNewFile *.app.src set filetype=erlang | |
Bundle 'oscarh/vimerl' | |
Bundle 'elixir-lang/vim-elixir' | |
Bundle 'carlosgaldino/elixir-snippets' |
This file contains hidden or 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
heroku create -s cedar | |
heroku config:add BUILDPACK_URL=http://github.com/heroku/heroku-buildpack-erlang.git |
This file contains hidden or 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
https://github.com/talentdeficit/jsx | |
https://github.com/davisp/jiffy | |
mochijson2 | |
https://github.com/jchris/erlang-json-eep-parser | |
https://github.com/klacke/yaws/blob/master/src/json2.erl | |
https://github.com/davisp/eep0018 |
This file contains hidden or 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(cb_tutorial_greeting_controller, [Req]). | |
-compile(export_all). | |
hello('GET', []) -> | |
{json, [{greeting, "Hello, world!"}]}. | |
list('GET', []) -> | |
Greetings = boss_db:find(greeting, []), | |
case Greetings of | |
[] -> | |
{output, <<"[]">>, [{"Content-Type", "application/json"}]}; |