Skip to content

Instantly share code, notes, and snippets.

View justinxreese's full-sized avatar
:shipit:
hello

Justin Reese justinxreese

:shipit:
hello
View GitHub Profile
describe World do
it "should return no cell on a new board" do
w = World.new
w.cell_at(2,2).should be_nil
end
it "should allow cell creation" do
w = World.new
w.make_cell(2,2)
w.cell_at(2,2).should be_kind_of(Cell)
end
module ProjectTypes
def self.assignable_types
ProjectTypes.constants.map{|klass|
[ProjectTypes.const_get(klass)::ENGLISH_NAME, klass]
}
end
end
class ProjectTypes::TypeIII
ENGLISH_NAME = 'Type III'
😒🙅🙄
$thing for fun and profit
all your $thing are belong to $shutup
honey I $verbed the $thing
$thing demystified
$thing: a deep dive
$verb all the things
make $thing great again
$x and $y and $z, oh my!
#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)