Skip to content

Instantly share code, notes, and snippets.

Peter Hicks poggs

Block or report user

Report or block poggs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xml_parser.rb
# A small DSL for helping parsing documents using Nokogiri::XML::Reader. The
# XML Reader is a good way to move a cursor through a (large) XML document fast,
# but is not as cumbersome as writing a full SAX document handler. Read about
# it here:
# Just pass the reader in this parser and specificy the nodes that you are interested
# in in a block. You can just parse every node or only look inside certain nodes.
# A small example:

Keybase proof

I hereby claim:

  • I am poggs on github.
  • I am poggs ( on keybase.
  • I have a public key whose fingerprint is 5FF8 CD0A F534 BD8A 7508 D195 BA3E FF52 81B8 2C18

To claim this, I am signing this object:

View gist:1610752
ruby-1.9.2-p290 :001 > params = {"utf8"=>"✓", "authenticity_token"=>"73M5LWo1Rc6GudM2DGBMQihc+AZ5huqUHd+0p507FlE=", "session"=>{"password"=>"ayo"}, "action"=>"create", "controller"=>"sessions"}
=> {"utf8"=>"✓", "authenticity_token"=>"73M5LWo1Rc6GudM2DGBMQihc+AZ5huqUHd+0p507FlE=", "session"=>{"password"=>"ayo"}, "action"=>"create", "controller"=>"sessions"}
ruby-1.9.2-p290 :002 > params[:password]
=> nil
You can’t perform that action at this time.