Skip to content

Instantly share code, notes, and snippets.

require 'door'
describe Door do
it "should be fucking awesome" do
Door.should be_awesome
end
describe "painting" do
before(:each) do
@door = Door.new
[root@bafflement ~]# pacman -Sy
:: Synchronizing package databases...
core 32.0K 226.1K/s 00:00:00 [######################################################################################################################################################################################################] 100%
extra 406.4K 230.8K/s 00:00:02 [######################################################################################################################################################################################################] 100%
community 355.1K 412.8K/s 00:00:01 [######################################################################################################################################################################################################] 100%
unstable 0.1K 1261.9K/s 00:00:00 [##########################################################################################################################
# user and group to run as
user http http;
# number of nginx workers
worker_processes 6;
# pid of nginx master process
pid /srv/temp/pids/nginx.pid;
# Number of worker connections. 1024 is a good default
server { # yreality.net
server_name yreality.net;
root /srv/www/yreality.net;
}
server { # Default
server_name _;
include /srv/conf/nginx/includes.conf;
server { # yreality.net
server_name yreality.net;
root /srv/www/yreality.net;
}
server { # Default
server_name _;
include /srv/conf/nginx/includes.conf;
require 'rubygems'
# require 'merb-extlib'
p $LOADED_FEATURES
# ---- -- ---- stringray.rb ---- -- ----
module StringRay
VERSION = 2
# Splits a string into words. Not using the obvious names (+#split+, +#words+)
# because I want compatibility for inclusion into +String+.
def enumerate
ray = []
self.each_byte do |byte|
Local setup
-----------
- `NEW_SERVER_NAME='bafflement'`
- `{mkdir, cd} ~/.ec2`
- https://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key#x509
- `mv ~/Downloads/*.pem ./`
- https://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
- `cp -r /Users/elliottcable/Downloads/ec2-api-tools-1.3-19403/{bin,lib} ./`
- `ec2-add-keypair $NEW_SERVER_NAME`
- `touch id_rsa-$NEW_SERVER_NAME`
[Fri Aug 15 - 14:04:29] [elliottcable @ Geoffrey] [~/Code/StringRay/]
-- rake yard:generate --trace
(in /Users/elliottcable/Code/StringRay)
** Invoke yard:generate (first_time)
** Execute yard:generate
rake aborted!
wrong number of arguments (2 for 1)
/usr/local/lib/ruby/gems/1.8/gems/yard-0.2.2/lib/yard/registry.rb:58:in `respond_to?'
/usr/local/lib/ruby/gems/1.8/gems/yard-0.2.2/lib/yard/registry.rb:58:in `dump'
/usr/local/lib/ruby/gems/1.8/gems/yard-0.2.2/lib/yard/registry.rb:58:in `save'
# Objects of this class are *almost* a URI!
class AlmostURI < String; end
[AlmostURI, String, Symbol].each do |klass|
klass.class_eval do
def / urlpart
AlmostURI.new [self, urlpart].join('/')
end