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
sudo apt-get build-dep git-core |
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
Server: | |
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=6.06 | |
DISTRIB_CODENAME=dapper | |
DISTRIB_DESCRIPTION="Ubuntu 6.06.2 LTS" | |
Ruby: | |
ruby 1.8.4 (2005-12-24) [x86_64-linux] | |
RubyGems: | |
RubyGems 0.9.2 | |
WebServer: |
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
hash = { :water => 'wet', :fire => 'hot' } | |
puts hash[:fire] # Prints: hot | |
hash.each_pair do |key, value| # Or: hash.each do |key, value| | |
puts "#{key} is #{value}" | |
end | |
# Prints: water is wet | |
# fire is hot | |
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
// Examples: | |
// | |
// HTML: | |
// <form action='messages/1/mark_unread'><input type='submit' class='button_to_link' value='Mark Unread'/></form> | |
// | |
// Rails: | |
// button_to "Mark as unread", mark_as_unread_message_path(message), :method => :put, :class => "button_to_link" | |
// | |
// jQuery: | |
// $(document).ready(function() { |
NewerOlder