Skip to content

Instantly share code, notes, and snippets.

Avatar

August King gusk

  • ThoughtWorks
  • Denver, CO
View GitHub Profile
View refactored http-parase
class HttpParser
def initialize(response)
@response = response
end
def headers
bar = {}
rar = {}
array = @response.lines
View dogs
class Dogs
POOR = (0..5).to_a.sample
AVERAGE = (6..10).to_a.sample
EXCELLENT = (11..15).to_a.sample
def initialize
joe = {
:name => {:first => "Joe", :last => "Smith"},
:owner_quality => EXCELLENT
}