Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am surfacedamage on github.
* I am phad (https://keybase.io/phad) on keybase.
* I have a public key whose fingerprint is FBB0 1176 7700 786C EB0F 1651 6BE3 8037 44F2 D4E5
To claim this, I am signing this object:
@surfacedamage
surfacedamage / gist:3291945
Created August 8, 2012 04:02
Getting rid of webkit select box gradiants and background color
/* HAAAACKKZZZZZZZ. I want HAAAAAACKZZZ!! /*
select {
font-size: 1.3em;
height: 43px;
width: 400px;
padding: 8px;
// webkit only
#config.ru
require ::File.expand_path('../config/environment', __FILE__)
use Rack::Deflater
run CatzWithLazersThatShootOtherCatzThroughTheirEyeSockets::Application
@surfacedamage
surfacedamage / gist:1856887
Created February 18, 2012 02:04
Rails date parsing
# what is the best way to handle proper date parsing in rails given that
# i want to allow users to enter in mm/dd/yyyy format as single string
#schema.rb
ActiveRecord::Schema.define(:version => 20120218015632) do
create_table "people", :force => true do |t|
t.string "name"
t.date "birthdate"
t.datetime "created_at"
t.datetime "updated_at"
@surfacedamage
surfacedamage / trainer.md
Created October 16, 2011 23:33 — forked from adamlogic/trainer.md
So, I went to see a beard grower ...

A few weeks ago I decided I wanted to grow a beard. The interaction did not go quite how I expected.


Me: So, I'm looking to grow a beard. Not just any beard, but one that ends at my knees. I want to turn heads when I take my shirt off. I've got a trip to Nigeria coming up in three months, so I need to start growing this as soon as possible.

Beard Grower: I can definitely help you with that!

@surfacedamage
surfacedamage / gist:993815
Created May 26, 2011 19:10
Getting ruby-debug commands to work in windows environment
If you find that after installing ruby-debug in windows, you don't see "continue",
"raise", or "disassemble" ... it's because those commands on the file system have
an uppercase "RB" file extension. SURPRISE!
Fix it.
1. cd to where your ruby-debug gem is installed
2. then cd to
\cli\ruby-debug\commands