Skip to content

Instantly share code, notes, and snippets.

View cee-dub's full-sized avatar

Cameron Walters (cee-dub) cee-dub

View GitHub Profile
# Usage: spec payment.rb
# Depends on Ruby and Rspec.
#
# Modify this code to compute the correct fee amount for a given payment amount.
# Add additional tests to cover any behavior you introduce.
class Payment
BASIS_POINTS = 290
INTERCHANGE = 15
@cee-dub
cee-dub / keybase.md
Created September 18, 2015 01:23
keybase.md

Keybase proof

I hereby claim:

  • I am cee-dub on github.
  • I am ceedub (https://keybase.io/ceedub) on keybase.
  • I have a public key whose fingerprint is 4FE7 0A9E F882 8393 C2F3 802D 8080 0A91 52B3 77B9

To claim this, I am signing this object:

require 'strscan'
require 'set'
class SqlQuery < Struct.new(:table, :where, :order)
def to_json
[table, where, order].to_json
end
end
class SqlScanner
require 'www/mechanize'
# Patches WWW::Mechanize for Cucumber + Webrat
module WWW
class Mechanize
def self.log_disabled
@@log ||= Logger.new(STDOUT)
end
#!/bin/bash
for dir in `find . -empty -type d -maxdepth $1`; do
if [ not `ls -A $dir` ]; then
echo "$dir"
fi
done
# Template which configures a generic Rails app with Shoulda, Factory Girl,
# HAML, etc while commiting each step into git.
#
# Make sure you have Rails 2.3rc1 or greater installed and run:
# rails -d mysql -m http://gist.github.com/57458
# Helper methods
# Modified version of the "gem" method which places the "config.gem..." lines
# after the examples in config/environment.rb.
Come taste some fine forties, cheetos, and various stank and non-stank bitches
on the sickest corner in SoMA! We're starting early so you can drop by
before heading to your midnight destinations.
Time
~7pm
Location
Jessie at 6th St, in front of the chain link fence