Skip to content

Instantly share code, notes, and snippets.

@tugboat
tugboat / bumpme
Last active November 1, 2019 15:43
Fri Nov 1 15:43:44 UTC 2019

Keybase proof

I hereby claim:

  • I am tugboat on github.
  • I am wschroer (https://keybase.io/wschroer) on keybase.
  • I have a public key whose fingerprint is CD04 E785 6F9E BC21 2180 4253 1D18 7E6C CACA B098

To claim this, I am signing this object:

@tugboat
tugboat / TreeParser.js
Created November 10, 2012 01:57
Recursive function for parsing a tree and building some HTML
var tree = {
a : {value : "This is node A", parent : ""},
b : {value : "This is node B", parent : "a"},
c : {value : "This is node C", parent : "a"},
d : {value : "This is node D", parent : "c"},
e : {value : "This is node E", parent : "c"},
f : {value : "This is node F", parent : "c"}
}
@tugboat
tugboat / gist:3428437
Created August 22, 2012 19:04
Had it working once like this
# pakyow-auth.rb
module Pakyow
module Auth
def self.included(obj)
if defined?(DataMapper)
require 'pakyow-auth/orm/datamapper/user'
require 'pakyow-auth/orm/datamapper/session'
@tugboat
tugboat / gist:3428313
Created August 22, 2012 18:49
Trying to include modules with DataMapper
# Here is the latest way I have this implemented
# I have tried many other things to try and get the magical combo
# I want to be able to include this in my model by doing:
# include Pakyow::Auth::UserMethods
# Or something like that. I'm not having much luck.
module Pakyow
module Auth
module UserMethods
include DataMapper::Resource
@tugboat
tugboat / gist:1160818
Created August 21, 2011 16:30 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this screencast if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent then a phone call or screen sharing.
@tugboat
tugboat / rubypair-setup
Created August 16, 2011 20:36
Setup instructions for the RubyPair Project
Fork the Project
rvm trust rvmrc
gem install bundler
bundle install
cp config/examples/app_config.yml config/app_config.yml