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
| git reset --soft HEAD^ | |
| git commit --amend |
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
| find . -name ".svn" -exec rm -rf {} \; |
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
| rm -rf myapp/{log,tmp}; tar czf myapp.tar.gz myapp/ |
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
| class Admin::SomethingsController < Admin::AbstractController | |
| # Authorization | |
| before_filter :authorize_something_view, :only => [:index] | |
| # GET /admin/somethings | |
| def index | |
| 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
| <% form_for :widget, :url=>widgets_path(@widget), :html=>{} do |f| %> | |
| <% fields_for :person do |p| %> | |
| <% 5.times do |i| %> | |
| <%= p.select(:state, State.find(:all).collect {|s| [ s.title, s.id ]}, {}, {:index=>i, :style=>''}) %> | |
| <%= p.text_field :zip, :size=>20, :index=>i %> | |
| <%= | |
| calendar_field "person_#{i}", 'born_string', | |
| { :class => 'date', :name => "person[#{i}][born_string]", :value=>Date.today)strftime("%m/%d/%Y"), :id=>"person_#{i}_born_string" }, | |
| { :firstDay => 1, :range => [1900, 2008], :step => 1, :showOthers => true, :cache => true, :ifFormat => '%m/%d/%Y' } |
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
| ssh-keygen -t rsa |