I hereby claim:
- I am joelhelbling on github.
- I am joelhelbling (https://keybase.io/joelhelbling) on keybase.
- I have a public key whose fingerprint is 6643 AE8A B8BA 8F7F 30E9 F779 CE9C 2B4B 120F FE06
To claim this, I am signing this object:
Feature: Wiki Documents | |
In order to manage wiki content | |
As a user | |
I want see, create and edit wiki documents | |
# | |
Scenario: View document page | |
Given there is a document titled "TestDocument" | |
When I visit the "TestDocument" document page | |
Then I should see "TestDocument" |
Given /^there is a document titled "([^\"]*)"$/ do |title| | |
Document.create!(:title => title, :body => 'Some content.') | |
end | |
When /^I visit the "([^\"]*)" document page$/ do |title| | |
visit "/documents/#{title}" | |
end |
module NavigationHelpers | |
# Maps a name to a path. Used by the | |
# | |
# When /^I go to (.+)$/ do |page_name| | |
# | |
# step definition in webrat_steps.rb | |
# | |
def path_to(page_name) | |
case page_name | |
# (Roman to Arabic only) | |
class RomanNumerals | |
def initialize | |
@numerals = { | |
"I" => 1, | |
"V" => 5, | |
"X" => 10, | |
"L" => 50, | |
"C" => 100, |
= Cheap Gas Calculator = | |
_Is it cheaper to drive across town for cheaper gas prices?_ | |
== Givens / Assumptions == | |
* Given: a particular car with its | |
** hwy MPG, | |
** tank size and | |
** current amount of fuel in gallons | |
* Given: a set of available gas stations with their |
require 'goliath' | |
require 'open-uri' | |
class Hello < Goliath::API | |
@@say = "Hello World" | |
# silly mechanism for changing | |
# server's response | |
def self.say(something) | |
@@say = something |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
export RUBY_MAJOR=2.1 | |
export RUBY_VERSION=ruby-2.1.1 | |
export RUBY_URL=http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/$RUBY_VERSION.tar.gz | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp |
local slot_switch | |
slot_switch = function() | |
if turtle.getSelectedSlot() == 16 then | |
return turtle.select(1) | |
else | |
return turtle.select(turtle.getSelectedSlot() + 1) | |
end | |
end | |
local slot_check | |
slot_check = function() |
local fill_inv | |
fill_inv = function() | |
for i = 1, 16 do | |
turtle.select(i) | |
turtle.suck() | |
end | |
end | |
local dump_inv | |
dump_inv = function() | |
for i = 1, 16 do |