I hereby claim:
- I am douglasdollars on github.
- I am doug (https://keybase.io/doug) on keybase.
- I have a public key whose fingerprint is 9864 015F 6B00 FF0C A5BC ABEA 7FC0 0B0E 39D7 C1B4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # awesome print | |
| begin | |
| require 'awesome_print' | |
| AwesomePrint.irb! | |
| rescue LoadError => err | |
| warn "Couldn't load awesome_print: #{err}" | |
| end | |
| # configure irb | |
| # Prompt mode simple just makes prompts look like >> instead of 1.9.3p327 :001 > |
| card="/Volumes/EOS_DIGITAL" # Matches most Canon cards' default name | |
| rm -rf $card"/DCIM" | |
| echo ":: photo directory erased" # Ignores other dirs on the card | |
| hdiutil eject -force $card | |
| echo ":: memory card ejected" |
| # KMIKEYM current stock price and five lowest offers available | |
| # By Douglas Dollars / @theDoug | |
| require 'open-uri' | |
| require 'nokogiri' | |
| @page = Nokogiri::HTML(open("http://www.kmikeym.com/offers")) | |
| @current_price = @page.xpath("//*[@id='price-block-inner']/h2/text()") | |
| def offer(number) |