git fetch origin
git co main && git pull
git co main && git co -b my-new-feature
# (Roman to Arabic only) | |
class RomanNumerals | |
def initialize | |
@numerals = { | |
"I" => 1, | |
"V" => 5, | |
"X" => 10, | |
"L" => 50, | |
"C" => 100, |
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.
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 |
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() |
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 |
= 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 |
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 | |
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 |
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" |