Skip to content
View keybase.md

Keybase proof

I hereby claim:

  • I am ged on github.
  • I am ged (https://keybase.io/ged) on keybase.
  • I have a public key whose fingerprint is AB46 5EE7 022B 68C4 2DBA D324 FB39 73E1 42A9 13A4

To claim this, I am signing this object:

View show.html.erb
class OrganizationalUnitsController < ApplicationController
def show
@organizational_unit = @directory.search( params[:id], :base )
end
end
require 'treequel/model'
require 'treequel/model/objectclass'
View sheen.rb
class Sheen
include Celluloid::Actor
def initialize(name)
@name = name
end
def current_status
"#{@name} is winning!"
end
View modinheritance.rb
#!/usr/bin/env ruby
class A
def initialize
puts "Initializing an A"
super
end
end
module B
View parasite.rb
#!/usr/bin/env ruby -wKU
### A parasitic class
class Parasite
### Make all future instances of the Parasite actually call
### methods of the +victim+ instead.
def self.infest( victim )
victim.methods.each do |m|
meth = victim.method( m )
View copyfrom.rb
#!/usr/bin/env ruby
require 'pg'
require 'stringio'
$stderr.puts "Opening database connection ..."
conn = PGconn.connect( :dbname => 'test' )
conn.exec( <<END_SQL )
DROP TABLE IF EXISTS logs;
View gist:77645
#!/usr/bin/env ruby
class A
def a; end
def b; end
end
class B < A
def a; end
end
Something went wrong with that request. Please try again.