Skip to content

Instantly share code, notes, and snippets.

Gus Knowlden gus

Block or report user

Report or block gus

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
gus / riot_example.rb
Created Jul 20, 2010 — forked from toothrot/riot_example.rb
Riot examples - via toothrot
View riot_example.rb
require 'rubygems'
require 'riot'
context "Something" do
setup do
D = 8
asserts("big") { 8==D }
asserts("bigger") { 8===D }
gus / index.txt
Created Nov 30, 2009 — forked from toothrot/index.txt
Ruby/Clojure analogs
View index.txt
For each Ruby module/class, we have Ruby methods on the left and the equivalent
Clojure functions and/or relevant notes are on the right.
For clojure functions, symbols indicate existing method definitions, in the
clojure namespace if none is explicitly given. clojure.contrib.*/* functions can
be obtained from,
ruby-to-clojure.*/* functions can be obtained from the source files in this
If no method symbol is given, we use the following notation:
gus / gist:180907
Created Sep 4, 2009 — forked from mtodd/gist:180398
Ruby and Heredocs
View gist:180907
Surround a heredoc with quotes and you can continue the code on the same line:
render :status => 404, :text => <<-'EOH' and return unless setup
article not found<br/>
I, as a server, have failed<br/>
Quotes also give you more freedom/creativity with the terminal ID:
You can’t perform that action at this time.