My Recent Pastes (450 and counting)

Pastes by ezmobius (450 and counting)

Pages:

Below are the 15 most recent pasties by ezmobius.

May 16, 2008
6:57PM EDT
by ezmobius

def my_route_set(r)
  r.match("/guides/:action/:id").to(:controller => "tour_guides")
end

Merb::Router.prepend do |r|

April 25, 2008
1:08AM EDT
by ezmobius

Merb::Router.prepend do |r|
  
   r.namespace :jhubert do |jhubert|
      jhubert.resources :name
   end

April 09, 2008
2:58AM EDT
by ezmobius

yay! pastie in #merb

December 15, 2007
3:41AM EDT
by ezmobius

spec/core/kernel/type_spec.rb
spec/core/kernel/untaint_spec.rb
spec/core/kernel/untrace_var_spec.rb
spec/core/kernel/warn_spec.rb

December 14, 2007
10:03PM EDT
by ezmobius

class Merb::Controller
  require "lib/merb/session/memory_session"
  Merb::MemorySessionContainer.setup
  include ::Merb::SessionMixin
  self.session_secret_key = "footo the bar to the baz"

December 14, 2007
6:43PM EDT
by ezmobius

 require 'ruby2ruby'
  
  class ParseTreeArray < Array #:nodoc:
    def self.translate(*args)
      self.new(ParseTree.translate(*args))

December 13, 2007
7:04PM EDT
by ezmobius

~/_merb/merb/apps/benchmark > script/benchmark        
* Starting Merb
* Memory size before benchmarking: 20.44MB
* Benchmarks (These may take a while)
* Requests per benchmark: 1000

December 12, 2007
9:57PM EDT
by ezmobius


(note: i just pushed 0.0.2 up and the gem mirrors typically take ~ 30 minutes to sync - be sure you get 0.0.2!)


December 11, 2007
8:11PM EDT
by ezmobius

class Merb::Controller
  require "merb/session/memory_session"
  Merb::MemorySessionContainer.setup
  include ::Merb::SessionMixin
  self.session_secret_key = "footo the bar to the baz"

December 11, 2007
8:10PM EDT
by ezmobius

class Merb::Controller
  require "lib/merb/session/memory_session"
  Merb::MemorySessionContainer.setup
  include ::Merb::SessionMixin
  self.session_secret_key = "footo the bar to the baz"

December 08, 2007
7:35PM EDT
by ezmobius

# If you want to protect some or all of your app with  HTTP basic auth then
# uncomment the following and fill in your credentials you want it to use.
# You will then need to set a 'before' filter in a controller.  For example:
#   before :basic_authentication
#:basic_auth: 

December 04, 2007
5:46PM EDT
by ezmobius

 def full_search_condition
    if !full_search.blank?
      _full_search = full_search
      c { any_of(:contact_email, :cc_last_four, :shipping_zip, :fulfillment_status, :payment_status) =~ "%#{_full_search}%" }
    end

November 29, 2007
9:24PM EDT
by ezmobius

module Enumerable
   
  # Abstract the common pattern of injecting a hash into a block to accumulate
  # and return the injected hash.
  #

November 29, 2007
8:59PM EDT
by ezmobius

  [:foo,:bar:baz:qux,:nik].each do |a|
    r.match("/#{a}").to(:controller => 'default', :action => a)
  end

November 28, 2007
5:48PM EDT
by ezmobius

USE="a52 encode imlib mmx ogg truetype vorbis x264 xvid zlib encode a52 x264  xvid faad faac -X -aac (-altivec) -amr -debug -doc -dts -ieee1394 -network -oss -sdl -test -theora -threads -v4l"

Next page

Previous page