This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def func_one | |
func_one = lambda do | |
puts "lambda_one" | |
end | |
#func_one.call | |
end | |
def func_two | |
func_two = lambda do | |
puts "lambda_two" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
NewerOlder