Skip to content

Instantly share code, notes, and snippets.

View noqcks's full-sized avatar
🏠
Working from home

Benji Visser noqcks

🏠
Working from home
View GitHub Profile
def to_roman(num)
numerals = {1000 => "M",
500 => "D",
100 => "C",
50 => "L",
10 => "X",
5 => "V",
1 => "I"
}
Ben Visser theodore.r.visser@gmail.com
Marlon Kenny marlonkenny@gmail.com
Brandon Lee blee298@gmail.com
Shannon McDonald shannon.mcdonald46@gmail.com
Marly Guha marlyguha@gmail.com
Eric Leong eleong95@gmail.com
Chris Reid chronic88@gmail.com
Eric Yee erizye@gmail.com
Derek Hendricks derek.m.hendricks@gmail.com
Kieran Cormack kcormack91@gmail.com
require_relative 'spec_helper'
# A Barracks should only be able to train footmen if it has enough resources
# Introduce a new method that checks to see if there are enough resources to train one
# Of course, it should then also be leveraged by the train_footman method
describe Barracks do
subject(:barracks) { Barracks.new }
require_relative 'spec_helper'
# Since a Footman is a type of Unit, it makes sense to now make Footman inherit from Unit
# Furthermore,
# This test doesn't look for it, but there are other things that you could do at this point. Think about what else you could refactor in the Footman class, now that it is inheriting functionality (code) from the Unit class.
describe Footman do
subject(:footman) { Footman.new }
@noqcks
noqcks / gist:26ed59fd965485a2bebf
Created October 18, 2014 07:06
Bitcoin verify
Verifying that +tanq is my Bitcoin username. You can send me #bitcoin here: https://onename.io/tanq
@noqcks
noqcks / hubot-slack-heroku.md
Created October 2, 2015 15:49 — forked from trey/hubot-slack-heroku.md
Steps to Install Hubot in Slack using Heroku
var fs = require('fs')
var myNumber = undefined
function addOne(callback) {
fs.readFile('number.txt', function doneReading(err, fileContents) {
myNumber = parseInt(fileContents)
myNumber++
callback()
})
}
@noqcks
noqcks / v
Created November 7, 2016 22:54
df
Verifying my Blockstack ID is secured with the address 1HbeSb92WEg9kNryc5swwuXFCLssFL9uGh https://explorer.blockstack.org/address/1HbeSb92WEg9kNryc5swwuXFCLssFL9uGh

Keybase proof

I hereby claim:

  • I am noqcks on github.
  • I am noqcks (https://keybase.io/noqcks) on keybase.
  • I have a public key whose fingerprint is 6649 FFC0 D58F 452D 492D CC4A BA13 4834 CDD6 5A0D

To claim this, I am signing this object: