An RPG for our entire family.
- Use weapons like swords and bows (C), but without hurting or killing (N)
- Gameplay that works for both young (3) and old (10+) kids
- Just enough structure to avoid chaos while still focusing on having fun
# Stolen from: http://github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/step_definitions.rb | |
# and slightly modified so that steps which create only a single record, save | |
# that record to an instance variable, so you can do things like: | |
# | |
# Given I am logged in as an admin | |
# And a post exists with a title of "Awesome Post" | |
# When I go to the post | |
# Then I should see "Awesome Post" | |
# And I should see a link to edit the post | |
# |
#!/bin/bash | |
# Pretty light-on-dark theme for iTerm. | |
# Copied from here: | |
# http://kpumuk.info/mac-os-x/customizing-iterm-creating-a-display-profile-with-pastel-colors/ | |
# Run in terminal then restart iTerm. | |
# Profile is listed as "Pastel" under Bookmarks => Manage Profiles... | |
PASTEL='{ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>omgsockets</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
var ws = new WebSocket('ws://localhost:3000'); | |
ws.onmessage = function(msg) { |
class Struct | |
def self.create(params = {}) | |
self.new.tap do |obj| | |
params.each do |key, val| | |
obj.send("#{key}=", val) | |
end | |
end | |
end | |
end |
# Enable tabbing to everything | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
# 2D Dock | |
defaults write com.apple.dock no-glass -bool true | |
# Always expand save dialog | |
defaults write -g NSNavPanelExpandedStateForSaveMode -bool true | |
# Don't hide ~/Library folder |
#!/bin/bash | |
set -e | |
echo "-----------------------------------------------------" | |
echo "Installing the essentials..." | |
echo "-----------------------------------------------------" | |
sudo apt-get update | |
sudo apt-get -y upgrade |
#!/bin/bash | |
# Much of this came from a few blog articles and one base script that I can't find now | |
# It is updated for the current VHD files (which supposedly expired on Aug 9th, 2011 | |
# but still work. | |
# | |
# Requirements: Virtual Box installed, unrar (from homebrew is fine) | |
# | |
# If you want to remove stuff, open up Virtual Box and remove the VM and delete files. | |
# |
# Mock new instances of a class (verify that it's initialized with specific arguments) | |
# First argument to __new__ is the class, so pass `object` because we don't care about that part | |
flexmock(MyClass).should_receive('__new__').once.with_args(object, 'arg1', 'arg2').and_return(fake_object) | |
MyClass('wrong', 'arguments') # => MethodSignatureError | |
MyClass('arg1', 'arg2') # => <fake_object> |
(A book that I might eventually write!)
Gary Bernhardt
I imagine each of these chapters being about 2,000 words, making the whole book about the size of a small novel. For comparison, articles in large papers like the New York Times average about 1,200 words. Each topic gets whatever level of detail I can fit into that space. For simple topics, that's a lot of space: I can probably walk through a very basic, but working, implementation of the IP protocol.