Skip to content

Instantly share code, notes, and snippets.

parent
|-- dog
| `-- puppy
|-- son
| |-- grandson
| | |-- greatgrandson
| | | `-- cheese
| | `-- greatgranddaughter
| | | `-- strawberry
| | | | `-- juice
node = Redwood::Node.new(:parent)
dog = node.add_child(:dog)
puppy = dog.add_child(:puppy)
son = node.add_child(:son)
grandson = son.add_child(:grandson)
greatgrandson = grandson.add_child(:greatgrandson)
greatgrandson.add_child(:cheese)
greatgranddaughter = grandson.add_child(:greatgranddaughter).add_child(:strawberry).add_child(:juice)
son.add_child(:granddaughter)
daughter = node.add_child(:daughter)
snnym-mwunsch2:Redwood 156280$ bundle exec rake
(in /Users/156280/Projects/Redwood)
rake aborted!
no such file to load -- bundler
/Users/156280/Projects/Redwood/Rakefile:2:in `require'
(See full trace by running task with --trace)
snnym-mwunsch2:Redwood 156280$ ruby --version
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.3.0]
snnym-mwunsch2:Redwood 156280$ bundle version
Bundler version 0.9.18
#!/usr/bin/env ruby
#
# Copyright (c) 2010 Joe Mahoney
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
#!/bin/bash
ruby -v
if ( type -P rvm &> /dev/null ) && ( rvm list | grep jruby &> /dev/null ) ; then
( rvm jruby && ruby -v )
else
echo 'No RVM!'
fi
set lines=35
set columns=90
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
set bg=dark
colorscheme molokai
set nocompatible
filetype plugin indent on
set number
set ruler
set showcmd
set showmatch
set visualbell
set cmdheight=2
set scrolloff=2
@mwunsch
mwunsch / html5.vim
Created August 12, 2010 20:58 — forked from rcmachado/html5.vim
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
" URL: http://gist.github.com/256840
" Last Change: 2009 May 13
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file
@mwunsch
mwunsch / boilerplate.css
Created August 16, 2010 04:04
Building up my boilerplate css
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, dialog, figure, footer, header,
@mwunsch
mwunsch / MyTheme.terminal
Created October 14, 2010 01:15
Terminal Theme
<?xml version="1.0" encoding="UTF-8"?>
<!-- My Terminal Theme based on http://www.blaenkdenum.com/2009/07/my-mac-os-x-terminal/ -->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAB
TxAhMC4xMDk4MDM5MiAwLjEwOTgwMzkyIDAuMTA5ODAzOTIA0hAREhNaJGNsYXNzbmFt