Skip to content

Instantly share code, notes, and snippets.

View jbowles's full-sized avatar
💭
working on it...

josh bowles jbowles

💭
working on it...
View GitHub Profile
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
@jbowles
jbowles / monkey_patcher.rb
Created November 29, 2011 21:57 — forked from hopsoft/monkey_patcher.rb
Monkey Patcher
MONKEY_PATCHES = {}
module MonkeyPatcher
begin
errors = []
port = Mongo::Connection::DEFAULT_PORT
begin
db_conn = Mongo::Connection.new('host', port).db('db')
db_error = Mongo::Connection.new('host', port).db('db')
# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"