Public Gists by steveh

Gravatar
Thu Nov 26 03:58:53 -0800 2009
1
2
3
# Use on_change :property { # do stuff here }
# to make changes to models after a property has been changed
 
Gravatar
Tue Oct 20 17:19:04 -0700 2009
1
2
3
module ApplicationHelper
 
  def local_time(time)
Gravatar
Sun Oct 18 22:41:06 -0700 2009
1
2
3
class CanonicalHost
  def initialize(app, host=nil, &block)
    @app = app
Gravatar
Wed Oct 14 19:51:25 -0700 2009
1
2
3
class CanonicalHost
  def initialize(app, host=nil, &block)
    @app = app
Gravatar
Tue Oct 06 23:46:35 -0700 2009
1
2
3
# bootstrapper.rb
# Rails Bootstrapper using rails template
# Based on Extended Bort -http://github.com/laktek/extended-bort/tree/master
gist: 203616 Rotate Rankers logs
Gravatar
Tue Oct 06 17:55:09 -0700 2009
1
2
3
#!/opt/ruby-enterprise/bin/ruby
 
require "date"
Gravatar
Tue Oct 06 17:54:33 -0700 2009
1
2
3
#!/opt/ruby-enterprise/bin/ruby
 
 
Gravatar
Tue Oct 06 17:53:16 -0700 2009
1
2
3
<?php
$start_time = microtime (true);
 
Gravatar
Thu Oct 01 17:54:59 -0700 2009
1
2
3
# extracted from marty andrew's presentation on ruby static code analysis
# http://www.slideshare.net/martin_j_andrews/code-quality-analysis
 
Gravatar
Mon Jun 15 23:16:21 -0700 2009
1
2
3
# extracted from marty andrew's presentation on ruby static code analysis
# http://www.slideshare.net/martin_j_andrews/code-quality-analysis