- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| FactoryGirl.define do | |
| factory :user do | |
| after(:create) do |user| | |
| FactoryGirl.create_list(:task, 10, user_id: user.id) | |
| end | |
| end | |
| factory :task do | |
| trait :with_user do | |
| user |
| #!/var/lib/jenkins/.rvm/bin/rvm-shell ruby-1.9.3-p194@sqale | |
| export RAILS_ENV=test | |
| bundle install --without production | |
| git checkout -b feature/bundle-update-`date +%Y%m%d` | |
| bundle update | |
| git add Gemfile Gemfile.lock | |
| git commit -m 'bundle update' | |
| git push origin feature/bundle-update-`date +%Y%m%d` |
| <div class="social-buttons" data-url="http://www.deafway.jp/"></div> | |
| <script type="text/javascript"> | |
| <!-- | |
| $(document).ready(function() { | |
| var mixi_favorite_parse = function() { | |
| $('div[data-plugins-type="mixi-favorite"]:empty').each(function(i, e) { | |
| new window.__MIXI_PLUGINS__.FavoriteFrame(e); | |
| }); |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
| #!/bin/bash | |
| function cmd() { | |
| target=$1; shift | |
| pane=$1; shift | |
| tmux send-keys -t:$target.$pane "$*" C-m | |
| } | |
| function window() { | |
| tmux new-window -a -n "$1" |
| http://uploads.makevoid.com/jquery_dom_highlighter.html |