Discover gists
This file contains 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
document.write(hello world); |
This file contains 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
Fork you |
This file contains 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 |
This file contains 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 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
test |
This file contains 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 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
This is a flipping file | |
Barg! | |
This is a frikin RAD tool |
This file contains 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 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
test 1 |
This file contains 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 {} \; |