Skip to content

Instantly share code, notes, and snippets.

View britt's full-sized avatar

Britt Crawford britt

View GitHub Profile
BEGIN MESSAGE.
tgcf2OCXCwZrfyy 1JsMkDMkTv3euLB HLzs2lnc4NO4yVY ojJPrxttNvya9Zv
n9vkITVMhSP92nQ 6ypeXrtMi85TCKq 6Xr2MZHgg6IJ0Fj 3qyupnJQsbqOlU4
hXceMMdCtCfMqfU eql9Dbd8I4QGAqF K5Crp12vO8dIJ5S rv8ffscRJgJ9E8a
nRLgu95fUcBA4Ru JZziIhAwjVzu02o KNw7R.
END MESSAGE.
@britt
britt / ETL_Pipline_Setup.md
Last active January 20, 2016 23:28
Development environment setup guide for etl_pipeline
npm-execspawn execspawn +0ms echo hello world
npm-execspawn execspawn +13ms transform-uppercase
Hey what up?
============
This is a gist.
#Hey what up?
This is a gist.
<div id="profile">
<div class="left column">
<div id="date"><%= print_date %></div>
<div id="address"><%= current_user.address %></div>
</div>
<div class="right column">
<div id="email"><%= current_user.email %></div>
<div id="bio"><%= current_user.bio %></div>
</div>
</div>
<div id="profile">
<div class="left column">
<div id="date"><%= print_date %></div>
<div id="address"><%= current_user.address %></div>
</div>
<div class="right column">
<div id="email"><%= current_user.email %></div>
<div id="bio"><%= current_user.bio %></div>
</div>
</div>
#profile
.left.column
#date= print_date
#address= current_user.address
.right.column
#email= current_user.email
#bio= current_user.bio
module DieNode
def roll
rand(sides.to_i) + 1
end
end
module ModifierNode
def to_i
amount.to_i * sign.to_multiplier
end
grammar Dice
rule roll
(rolls:digits? "(" roller:roll ")" modifier:modifier? modifier_roller:modifier_roll? / rolls:digits? roller:die modifier:modifier? modifier_roller:modifier_roll?) <RollNode>
end
rule modifier_roll
space* sign:plus_minus space* amount:roll <ModifierNode>
end
rule modifier