My Recent Pastes (150 and counting)

Pastes by enebo (150 and counting)

Pages:

Below are the 15 most recent pasties by enebo.

April 26, 2007
12:58PM EDT
by enebo

                  case 'e':
                     c='\u001B';
                     break handle_special;

April 26, 2007
12:22PM EDT
by enebo

    def scanadd( str, force = false )
      types = ''
      strs = []

      until str.empty?

April 26, 2007
11:45AM EDT
by enebo

    def scanadd( str, force = false )
      types = ''
      strs = []

      until str.empty?

April 24, 2007
5:16PM EDT
by enebo

require 'benchmark'

puts "Control: 100k loops accessing a local symbol 100 times"
10.times {
puts Benchmark.measure {

April 23, 2007
2:21PM EDT
by enebo

enebo:13:24 ~ 541% ls -l Documents/workspace/jruby_trunk/lib/ruby/gems/1.8/source_cache 
2744 -rw-r--r--   1 enebo  enebo  1403698 Apr 23 13:24 Documents/workspace/jruby_trunk/lib/ruby/gems/1.8/source_cache
enebo:13:25 ~ 542% ls -l /opt/local/lib/ruby/gems/1.8/source_cache 6096 -rw-r--r--   1 root  admin  3120254 Apr 23 13:20 /opt/local/lib/ruby/gems/1.8/source_cache

April 23, 2007
12:47PM EDT
by enebo

../jruby_trunk/bin/jruby --command rake package
(in /Users/enebo/Documents/workspace/activerecord-jdbc)
You really need Hoe installed to be able to package this gem
rake aborted!
Don't know how to build task 'package'

April 22, 2007
8:52PM EDT
by enebo

MyStruct = Struct.new("MyStruct", :a, :b)
class MySubStruct < MyStruct
  def initialize(v, *args) super(*args); @v = v; end 
end
b = MySubStruct.new(1, 2)

April 18, 2007
2:41PM EDT
by enebo

--- 
:menu: !ruby/object:Goldberg::Menu
  root: &id004 !ruby/object:Goldberg::Menu::Node
    children: 
    - 1

April 18, 2007
1:16PM EDT
by enebo

require 'yaml'

class Foo
end

April 18, 2007
12:59PM EDT
by enebo

unser: cache
YAML: --- 
:credentials: !ruby/object:Goldberg::Credentials 
  actions: 
    goldberg/site_controllers: 

April 13, 2007
4:34PM EDT
by enebo

# Scenario 5: explicit blockpass arg breaks straight from method
def each(&block)
  block.call()
  $a = 2
end

April 13, 2007
4:09PM EDT
by enebo

# Scenario 1: explicit blockpass arg breaks at while
def each(&block)
  a = 1
  while true
    block.call()

April 13, 2007
3:32PM EDT
by enebo

# Scenario 1: blockpass arg breaks at while
def each(&block)
  a = 1
  while true
    block.call()

April 11, 2007
11:58AM EDT
by enebo

require 'yaml'

class Bar
  class Foo
      attr_accessor :ref

April 11, 2007
11:47AM EDT
by enebo

:menu: !ruby/object:Goldberg::Menu
  crumbs: 
  - 1
  by_name: 
    setup/pages: 

Next page

Previous page