At least four innovations in nutrient sources, preparation, and distribution underlie the transformation of our evolutionary ancestors into modern humans: the digging, preparation, and consumption of tubers and rhizomes; the technological mediation of hunting and butchering of animal prey; the socially mediated redistribution of animal prey; and the control of fire for cooking. The emergence of technologies for processing hard-to-obtain or difficult-to-digest foods such as animal protein, savanna tubers,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host pairhost2 | |
Hostname lin.one42.co.uk | |
User mattwynne | |
Port 10022 | |
RemoteForward localhost:22222 localhost:22 | |
Host *.pair2 | |
ProxyCommand ssh -e none -ax pairgate nc -w 5 localhost %p 2>/dev/null | |
User pairing | |
LocalForward localhost:3000 localhost:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CardCreator < Struct.new(:listener) | |
def create(iteration, attributes) | |
card = iteration.cards.build(attributes) | |
if card.save | |
listener.created(card) | |
else | |
listener.create_failed(card) | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Organization | |
def to_param | |
"42" | |
end | |
def saved? | |
rand > 0.5 | |
end | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ADD LOCAL CONFIGURATION HERE | |
[diff] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[core] | |
editor = vim | |
[alias] | |
st = status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this in your ~/.ssh/config | |
Host pairgate | |
Hostname <central-pairing-server> | |
User <your-user-name> | |
Host pairhost | |
Hostname <central-pairing-server> | |
User <your-user-name> | |
RemoteForward localhost:2222 localhost:22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/inflector' | |
class Bar; end | |
def ControllerMixin(model) | |
model_class = model.classify.constantize | |
Module.new do | |
define_method(:"current_#{model}") do | |
model_class.find(session[:"current_#{model}_id"]) if session[:"current_#{model}_id"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Trains from Southampton Airport Parkway to Clapham Junction" && curl --silent \ | |
--user-agent "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7" \ | |
--referer "http://ojp.nationalrail.co.uk/en/s/ldbboard/dep/HYN/GLQ/To" \ | |
"http://ojp.nationalrail.co.uk/en/s/ldb/liveTrainsJson?departing=true&liveTrainsFrom=Southampton+Airport+Parkway&liveTrainsTo=Clapham+Junction&serviceId=" \ | |
| sed -e 's/[{"&;/"}]/''/g' | sed -e 's/ltbrgt/-''/g' | \ | |
awk '{n=split($0,a,","); for (i=6; i<=n-2; i++) { printf("%s %-25s %-20s\n",a[i+0],a[i+1],a[i+2]); i+=5}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ack "stub\!?\(:(today|now)" spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = proc do |env| | |
puts Rack::Request.new(env).params.inspect | |
[ 200, {'Content-Type' => 'text/plain'}, ["a"] ] | |
end | |
run app |