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
| Rake::Task["assets:precompile"].clear | |
| namespace :assets do | |
| task 'precompile' do | |
| puts "Not pre-compiling assets..." | |
| 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
| enchant(); // 初期化 | |
| var FPS = 30; // フレームレート | |
| var MAX_ROW = 14+1; // 縦のマス数 | |
| var MAX_COL = 6+2; // 横のマス数 | |
| var CELL_SIZE = 16; // マスのサイズ(ぷよのサイズ) | |
| var PUYOS_IMG = "puyos.png" // 壁とぷよの画像 | |
| window.onload = function () { |
Ruby の HTTP クライアントライブラリ Faraday が便利そう
API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた
[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた