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
@jbowles
jbowles / string_build_rebuild.py
Created May 7, 2012 01:03
(Re)Build String to MultiValue Hash
#!/usr/bin/env python
def builder(string1,string2):
return string1 + ' ' + string2
def insert(string_list):
return [char +'-' for char in string_list]
def joiner(string_list):
return ''.join(x for x in string_list)
@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"