My Recent Pastes (45 and counting)
Recent Pasties by rubydiamond (45 and counting)
Below are summaries of the 15 most recent pasties by rubydiamond.
July 18, 2008
10:55AM EDT
by rubydiamond
1 2 3 |
before_thumbnail_saved do |record, thumbnail| thumbnail.update_attribute(:filename, thumbnail.public_filename(thumbnail.thumbnail.to_sym)) end |
July 16, 2008
9:46AM EDT
by rubydiamond
1 2 3 4 |
anil@anil-workstation:~/Projects/dotfiles$ sudo git push origin master Permission denied (publickey). fatal: The remote end hung up unexpectedly error: failed to push to 'git@github.com:anildigital/ubuntu_dotfiles.git' |
June 01, 2008
8:20AM EDT
by rubydiamond
View more (9 lines)
1 2 3 4 5 |
<p>Most awesome talk of RailsConf 2008.</p> <object width="400" height="300"> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1099027&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /> <embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1099027&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://www.vimeo.com/1099027?pg=embed&#38;sec=1099027">RailsConf 2008 Git Talk by Scot Chacon Video</a> from <a href="http://www.vimeo.com/user507500?pg=embed&#38;sec=1099027">daniel wanja</a> on <a href="http://vimeo.com?pg=embed&#38;sec=1099027">Vimeo</a>. |
April 06, 2008
3:08PM EDT
by rubydiamond
View more (13 lines)
1 2 3 4 5 |
anil-wadghules-computer:~/code/rails/blog/vendor/rails/actionpack anilwadghule$ git status # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # |
March 30, 2008
3:08PM EDT
by rubydiamond
View more (12 lines)
1 2 3 4 5 |
>> require 'action_controller' => [] >> require 'action_pack' => [] >> AbstractRequest.parse_query_parameters("/content/foo?place=Pune&state=MH") |
March 30, 2008
2:40PM EDT
by rubydiamond
View more (19 lines)
1 2 3 4 5 |
In actionpack/test/controller/routing_test.rb def test_route_for_query_string rs.draw do |map| map.connect ':controller/:action/:id' |
March 30, 2008
8:12AM EDT
by rubydiamond
View more (11 lines)
1 2 3 4 5 |
def test_redirect_to assert_equal 'window.location.href = "http://www.example.com/welcome?place=Pune&state=MH";', @generator.redirect_to(:action => 'welcome', :place => "Pune", :state => "MH") end |
February 29, 2008
8:47AM EDT
by rubydiamond
View more (23 lines)
1 2 3 4 5 |
?> d1 = Time.now => Fri Feb 29 05:37:54 -0800 2008 >> d1.to_date => Fri, 29 Feb 2008 >> d1.next_week |
February 20, 2008
2:42PM EDT
by rubydiamond
View more (22 lines)
1 2 3 4 5 |
module World end module World2 end |
February 13, 2008
5:25AM EDT
by rubydiamond
1 2 3 4 5 |
module ExceptionNotifiable def self.included(target) target.extend(ClassMethods) end |
February 10, 2008
3:02PM EDT
by rubydiamond
View more (27 lines)
1 2 3 4 5 |
<html> <head> <script LANGUAGE="JavaScript"> <!-- window.location.replace("http://anilwadghule.com/blog/"); |
February 10, 2008
12:22PM EDT
by rubydiamond
View more (6 lines)
1 2 3 4 5 |
# To install git man pages when you have git installed from source. # manpages curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.2.4.tar.bz2 \ -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.2.4.tar.bz2.sign gpg --verify git-manpages-1.5.2.4.tar.bz2.sign git-manpages-1.5.2.4.tar.bz2 |
February 07, 2008
6:38AM EDT
by rubydiamond
View more (7 lines)
1 2 3 4 5 |
class Greeting class << self def self.hello puts "Hello World!" end |
February 03, 2008
2:37PM EDT
by rubydiamond
View more (36 lines)
1 2 3 4 5 |
with require 'mocha' def test_delete Article.expects(:delete).with(1).returns(nil) post :delete, :article_id => 1 |
January 29, 2008
9:39AM EDT
by rubydiamond
View more (55 lines)
1 2 3 4 5 |
anil-wadghules-computer:~/code/rails/notetaker anilwadghule$ cap deploy:cold * executing `deploy:cold' * executing `deploy:update' ** transaction: start * executing `deploy:update_code' |
Pastie