Skip to content

Instantly share code, notes, and snippets.

@seesmith
seesmith / keybase.md
Created January 18, 2018 09:21
Keybase

Keybase proof

I hereby claim:

  • I am seesmith on github.
  • I am cgknowles (https://keybase.io/cgknowles) on keybase.
  • I have a public key ASAauZo3R9xEF7h1auIUt_TClWjq4slCXc1RBEda0pZTego

To claim this, I am signing this object:

@seesmith
seesmith / configure.rb
Created April 7, 2011 11:12
Scottish Ruby Conference Tutorial No 2 I&I
class Configuration
attr_accessor :tail_logs
attr_accessor :max_connections
attr_accessor :admin_password
attr_accessor :app_server
def initialize
@app_server = AppServer.new
end
@seesmith
seesmith / counter.rb
Created April 7, 2011 10:12
scottish ruby conference tutorial counter code
def counter(start, increment)
lambda do
current = start
start += increment
current
end
end
result = counter(2,3)
puts result.call