This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
😒🙅🙄 | |
$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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |