Skip to content

Instantly share code, notes, and snippets.

View joelhelbling's full-sized avatar
💭
Perfect love casts out fear.

Joel Helbling joelhelbling

💭
Perfect love casts out fear.
View GitHub Profile

Keybase proof

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:

#!/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
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
@joelhelbling
joelhelbling / cheap_gas_calculator_kata.txt
Created February 9, 2012 19:38
Cheap Gas Calculator
= 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
@joelhelbling
joelhelbling / mock_server_example.rb
Created October 17, 2012 17:16
mock server in a separate thread
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
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

ContinuousContext

A privacy-first, end-to-end encrypted system which presents context analysis for your everyday life. It can collect, collate and retrieve data from disparate sources and present tunable analysis to help you identify trends, habits and areas to target for improvement. It can also be used to assist with context recall, such as when you get Slack question about that thing you worked on with someone, way back when.

Now, for the naming of the parts.