This file contains hidden or 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
require './numeral_converter' | |
require 'minitest/autorun' | |
describe NumeralConverter do | |
describe "#to_roman" do | |
it "converts 1 to I" do | |
1.must_equal_roman "I" | |
end | |
it "converts 2 to II" do | |
2.must_equal_roman "II" |
This file contains hidden or 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
class TicTacToe < Struct.new(:board) | |
CATS_GAME = :c; INCOMPLETE_GAME = :e; PLAYERS = [:x, :o] | |
def winner | |
winning_row.first | |
end | |
private | |
def clear_winner? | |
!winning_permutation.nil? |
This file contains hidden or 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
(verse 1) | |
The boss thinks you are get-ting la-zy and fat, | |
Want's you to get up and get off your ass. | |
What's a better motivator than a stat? | |
Even better if it just happens like that. | |
Take off your shoes and walk on the grass | |
I'm on your belt and I don't take any sass | |
(chorus) |
This file contains hidden or 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
class String | |
def fuck_yea(&block) | |
each_char do |c| | |
p yield(c) | |
end | |
end | |
def fuck_yea_with_callback(callback) | |
each_char do |c| | |
callback.call(c) |
This file contains hidden or 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
rvm use system@network-graph --create |
This file contains hidden or 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
asset_url: | |
- production: http://assets.zeespencer.com/assets | |
- development: /assets |
This file contains hidden or 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
@import "susy"; | |
$total-columns: 12; | |
$column-width: 4em; | |
$gutter-width: 1em; | |
$grid-padding: $grid-padding; | |
body { | |
font-family: Helvetica, sans-serif; | |
background-image: image-url('gray_jean.png'); |
This file contains hidden or 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
[zee@prime ~]$ sudo salt 'hedgehog.makeheadspace.com' grains.items | |
hedgehog.makeheadspace.com: | |
cpu_flags: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni vmx cx16 popcnt hypervisor lahf_lm | |
cpu_model: QEMU Virtual CPU version 1.0 | |
cpuarch: x86_64 | |
defaultencoding: None | |
defaultlanguage: None | |
domain: makeheadspace.com | |
fqdn: hedgehog.makeheadspace.com | |
gpus: |
This file contains hidden or 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
class Judge | |
def cast_judgement(cell) | |
if cell.neighbor_count < 2 || cell.neighbor_count > 3 | |
cell.kill! | |
end | |
end | |
end | |
class Cell |
This file contains hidden or 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
(defn inc-all [] | |
(let [x '(1,2,3)] | |
(println (map inc x)) | |
(println x))) | |
(inc-all) |