Skip to content

Instantly share code, notes, and snippets.

View wolframarnold's full-sized avatar

Wolfram Arnold wolframarnold

View GitHub Profile
@wolframarnold
wolframarnold / 2011-07-18.ruby_class.md
Created July 18, 2011 14:45
Ruby Class 7/18/2011 - 7/19/2011

Hello Class!

This is a Gist, a pastable area on the web that I'll be using to save code snippets off, so you can copy and paste from here, and don't have to worry about missing some things I type.

Resources

Slide presentation (while in class): http://192.168.1.84:9090/

Ruby Documentation:

@wolframarnold
wolframarnold / nokogiri-first-of-type-bug.rb
Created January 8, 2011 14:38
Illustration of Nokogiri 1.5.0.beta3 bug with first-of-type and nth-of-type pseudo selectors
html = %Q{
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<form action="/">
<p>First child</p>
<div class="doc_form">
first doc form, should be blue
</div>
<div class="doc_form">
generate("cucumber")
run("rm -rf features")
git(:clone => "git://gitorious.org/workshop-features/features.git")
inside("features") { run("rm -rf .git") }
rake("db:migrate")