My Recent Pastes (250 and counting)
All Pasties (215,911 and counting)
Below are summaries of the 15 most recent pasties by Josh Goebel.
October 06, 2008
5:07AM EDT
by Josh Goebel
View more (146 lines)
1 2 3 4 5 |
## ## $Rev: 115 $ ## $Release: 2.6.2 $ ## copyright(c) 2006-2008 kuwata-lab.com all rights reserved. ## |
May 18, 2008
2:33AM EDT
by Josh Goebel
View more (60 lines)
1 2 3 4 5 |
## after def discount_by_item(apple) full_quantity = 0 discount_quantity = 0 |
May 17, 2008
5:30PM EDT
by Josh Goebel
View more (15 lines)
1 2 3 4 5 |
# TODO: this should use current_scope too def get(model, key) # @identity_maps[model][key] || @adapter.read(self, model, key) @identity_maps[model][key] || first(model, :id => key) end |
March 28, 2008
1:17AM EDT
by Josh Goebel
View more (15 lines)
1 2 3 4 5 |
after_attachment_saved do |photo| image=MiniMagick::Image.from_file(photo.full_filename) height=image["height"] width=image["width"] if height<100 or width<100 |
January 29, 2008
10:10PM EDT
by Josh Goebel
View more (25 lines)
1 2 3 4 5 |
Index: /Users/jgoebel/rails/raptor =================================================================== diff with working copy (58972d1fa496) --- a/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb Tue Jan 29 22:10:25 2008 -0500 +++ b/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb Tue Jan 29 22:10:32 2008 -0500 |
January 24, 2008
3:47PM EDT
by Josh Goebel
View more (39 lines)
1 2 3 4 5 |
Index: /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/time_with_zone.rb =================================================================== --- /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/time_with_zone.rb (revision 8714) +++ /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/time_with_zone.rb (working copy) @@ -11,6 +11,10 @@ |
January 24, 2008
3:21PM EDT
by Josh Goebel
View more (28 lines)
1 2 3 4 5 |
Index: /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb =================================================================== --- /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb (revision 8714) +++ /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb (working copy) @@ -6,11 +6,23 @@ |
January 24, 2008
3:12PM EDT
by Josh Goebel
View more (24 lines)
1 2 3 4 5 |
Index: /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb =================================================================== --- /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb (revision 8714) +++ /Users/jgoebel/rails/raptor/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb (working copy) @@ -6,11 +6,19 @@ |
January 24, 2008
12:44PM EDT
by Josh Goebel
View more (14 lines)
1 2 3 4 5 |
module OneTimeZone module ActiveRecordMethods def self.extended(base) base.module_eval do |
January 24, 2008
12:40PM EDT
by Josh Goebel
View more (9 lines)
1 2 3 4 5 |
def self.extended(base) # puts "extending #{base.inspect}" base.module_eval do def self.inherited(subclass) # puts "inherited #{subclass}" |
January 24, 2008
11:49AM EDT
by Josh Goebel
View more (45 lines)
1 2 3 4 5 |
module OneTimeZone module ActiveRecordMethods # def self.extended(base) # puts "extending #{base.inspect}" |
January 21, 2008
5:58AM EDT
by Josh Goebel
View more (22 lines)
1 2 3 4 5 |
def self.squares_between(a,b) squares=[] walk=a.clone while (walk[0]!=b[0]) if walk[0]<b[0] |
January 21, 2008
5:40AM EDT
by Josh Goebel
View more (10 lines)
1 2 3 4 5 |
def self.squares_between(a,b) squares=[] (a[0]..b[0]).each do |x| (a[1]..b[1]).each do |y| squares << [x,y] |
December 20, 2007
4:16PM EDT
by Josh Goebel
1 2 3 4 5 |
tests NotesController def setup super @controller = NotesController.new |
December 06, 2007
7:59PM EDT
by Josh Goebel
1 2 3 4 |
task :start_popper, :roles => :app do set :use_sudo, false send(run_method, "RAILS_ENV='production' #{current_path}/lib/daemons/popper_ctl start") end |
Pastie