This file contains 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
while foreigner != terrorist | |
waterboard(foreigner) | |
end | |
imprison(foreigner) |
This file contains 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
There are several parking options for Great Lakes Ruby Bash. Check out our <a href="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=117792983027054200737.0004589662cacf5a70bdf&ll=42.28173,-83.735304&spn=0.007049,0.011115&z=17">Google Map</a> for all of the options. We recommend you park in the Blue parking structure on Ann, which is about 1 block north of the conference site. You may also park in the other structures labelled with blue pins for free. They does not require a permit on the weekend. You may get directions from your origin by clicking on the blue pin and choosing "Directions to here". | |
NOTE: The parking structures labelled on this map contain Gold and Business reserved parking as well as Blue parking. DO NOT park in those spots, as you will get a nasty ticket. All spots not specifically labelled are Blue spots and are generally OK to park in, but please read and adhere to all posted signs in your parking lot, structure, and space. | |
If you require a closer parking spot, there |
This file contains 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
class Time | |
class << self | |
alias_method :parse, :parse_without_new_stuff | |
def parse(str) | |
if(string_is_in_your_format) | |
#do your parsing | |
else | |
parse_without_new_stuff(str) | |
end |
This file contains 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
# input: | |
# | |
# foo,1,1 | |
# foo,1,2 | |
# foo,1,3 | |
# foo,1,5 | |
# bar,2,1 | |
# bar,1,7 | |
# bar,0,5 | |
# |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>blah</title> | |
<style type="text/css" media="screen"> | |
table { | |
width: 50%; |
This file contains 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
# http://www.websudoku.com/?level=4&set_id=470872047 | |
..53.694. | |
.3.1....6 | |
.......3. | |
7..9..... | |
.1..3..2. | |
.....2..7 | |
.6....... | |
8....7.5. | |
.436.81.. |
This file contains 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
before "deploy:setup", "db:configure" | |
after "deploy:update_code", "db:symlink" | |
set(:database_username, "arubything") | |
# set(:database_password, "root") | |
set(:development_database) { application + "_development" } | |
set(:test_database) { application + "_test" } | |
set(:production_database) { application + "_production" } | |
namespace :db do |
This file contains 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 each_pair(&block) | |
each_with_index do |word, index| | |
yield word + self[index + 1] | |
end | |
end |
This file contains 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
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
[core] | |
excludesfile = /Users/[homedir]/.gitignore | |
[merge] | |
tool = opendiff | |
[alias] |
This file contains 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
# From http://github.com/jaymcgavren | |
# | |
# Save this as rcov.rake in lib/tasks and use rcov:all => | |
# to get accurate spec/feature coverage data | |
require 'cucumber/rake/task' | |
require 'spec/rake/spectask' | |
namespace :rcov do | |
Cucumber::Rake::Task.new(:cucumber) do |t| |
OlderNewer