Updated for Rails 4.0.0+
-
Set up the
bower
gem. -
Follow the Bower instructions and list your dependencies in your
bower.json
, e.g.// bower.json
{
@interface NSString(NSStringAddition) | |
- (NSString *)convertToZenkakukana; | |
@end | |
@implementation NSString(NSStringAddition) | |
- (NSString *)convertToZenkakukana | |
{ | |
NSMutableString *target =self.mutableCopy; |
box: wercker/ubuntu12.04-ruby2.0.0 | |
services: | |
- wercker/postgresql | |
build: | |
steps: | |
- bundle-install | |
- rails-database-yml: | |
service: postgresql |
Updated for Rails 4.0.0+
Set up the bower
gem.
Follow the Bower instructions and list your dependencies in your bower.json
, e.g.
// bower.json
{
class SourceAnnotationExtractor | |
def find_with_custom_directories | |
find_without_custom_directories(%w(app config lib script test spec)) | |
end | |
alias_method_chain(:find, :custom_directories) | |
end |
https://gist.github.com/mala/5062931
の続き。
Twitterの人に色々と問題点は伝えたんだけど、これからOAuthのサーバー書く人や、クライアント書く人が似たような問題を起こさないようにするために、どうすればいいのかについて簡単に書きます。既存の実装真似して作るとうっかりひどい目にあう。
自分は意図的に「Twitterの脆弱性」という表現を使わないように気を使っていて、それはクライアントアプリ側の責任もあるからなのだけれども、安全に実装するための方法がわかりにくかったり誤解を招きやすかったり、Twitterに買収されているTweetDeckにも問題があったりしたので、それはやっぱりTwitter側の責任の比重が大きいとは思う。とはいっても別に責任を追求したかったり◯◯はクソだといったことを言いたいわけではなく、誰が悪いとか言う以前に、複合的な要因によって問題が起きるときには原因を正しく理解する必要があると思う。
describe "hoge" do | |
bofore do | |
get "index" , value | |
end | |
context "範囲内に収まるパラメータがくる" do | |
let (:value) { 123 } | |
it { response.should eq true } | |
end | |
context "範囲内に収まっていないパラメータがくる" do | |
let (:value) { 123456 } |
#!/bin/bash | |
# GTK+ and Firefox for Amazon Linux | |
# Written by Joseph Lawson 2012-06-03 | |
# http://joekiller.com | |
# http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/ | |
# chmod 755 ./gtk-firefox.sh | |
# sudo ./gtk-firefox.sh | |
/* balloon | |
=balloon-left($size: 6px, $color: #FFF, $top: 6px) | |
position: relative | |
&:after | |
position: absolute | |
content: "" | |
display: block | |
border: $size solid transparent | |
border-right: $size solid $color | |
top: $top |
# Gemfile | |
gem "puma" | |
# Procfile | |
web: bundle exec puma -p $PORT -e $RACK_ENV -C config/puma.rb | |
# add to config block config/environments/production.rb | |
config.threadsafe! | |
# get rid of NewRelic after_fork code, if you were doing this: |