Skip to content

Instantly share code, notes, and snippets.

View douglasdollars's full-sized avatar
💭
slam in the back of my dragula

Douglas Dollars douglasdollars

💭
slam in the back of my dragula
View GitHub Profile

Keybase proof

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:

@douglasdollars
douglasdollars / .irbrc
Created March 26, 2013 01:29
irbrc and related Requires/works best with awesome_print and hirb
# 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 >
@douglasdollars
douglasdollars / card-eject.sh
Created August 26, 2012 02:36
Card ejection
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"
@douglasdollars
douglasdollars / K5M.rb
Last active October 6, 2015 22:58
KMIKEYM current stock price and lowest offers available
# 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)