Skip to content

Instantly share code, notes, and snippets.

@ryonext
ryonext / application_template.rb
Last active October 11, 2015 06:38
My Rails Application template
gem "twitter-bootstrap-rails"
gem "thin"
gem_group :development, :test do
gem "rspec-rails"
gem "pry-rails"
gem "spork"
gem "rb-fsevent"
gem "guard-spork"
gem "growl"
@ryonext
ryonext / gist:4661949
Created January 29, 2013 05:01
リモートのブランチをチェックアウトする checkout remote branch
git checkout origin/new_branch -b new_branch_name
@ryonext
ryonext / gist:4711554
Created February 5, 2013 02:16
jQueryのセレクタattrの使い方
<div class="btn" data-toggle="modal" href="#message_modal" id="select_target" target_id="1">aaa</div>
ここからtarget_idを抜く方法
$("#select_target").attr("target_id")
@ryonext
ryonext / global gitignore
Created February 20, 2013 01:53
global gitignore
git config --global core.excludesfile [filepath]
@ryonext
ryonext / helloworld.rb
Last active December 13, 2015 23:48
ハローワールド
p 'Hello World'
@ryonext
ryonext / gist:5175620
Last active December 15, 2015 00:49
Install ruby via rbenv with readline
RUBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p0
@ryonext
ryonext / spec_helper.rb
Last active December 17, 2015 02:39
SimpleCovでgemを除外したい
SimpleCov.start 'rails' do
add_filter ".bundle"
end
@ryonext
ryonext / rails_ui_template
Created August 1, 2013 07:42
Rails3でUIを持ったapplicationを作るときのtemplate
gem "twitter-bootstrap-rails"
gem "thin"
gem_group :development, :test do
gem "rspec-rails"
gem "pry-rails"
gem "pry-debugger
gem "spork"
gem "guard-spork"
gem "guard-rspec"
@ryonext
ryonext / rails_api_template
Last active December 20, 2015 12:09
Rails3でAPIを作るときのテンプレート
gem "thin"
gem_group :development, :test do
gem "rspec-rails"
gem "pry-rails"
gem "pry-debugger"
gem "spork"
gem "guard-spork"
gem "guard-rspec"
gem "factory_girl_rails"
@ryonext
ryonext / rails new with version
Created August 1, 2013 07:59
バージョン指定してRails new
rails _3.2.13_ new nanika