Skip to content

Instantly share code, notes, and snippets.

View alexstubbs's full-sized avatar

Alex Stubbs alexstubbs

  • 100Starlings
  • London & Keszthely (Hungary)
View GitHub Profile
def run
users_with_recent_parcels.find_each do |user|
begin
next if has_trust_pilot_email?(user)
schedule_trust_pilot_email_for(user) if has_recently_scanned_label?(user)
rescue Exception => e
Airbrake.notify e
end
end
end
require 'open-uri'
# url dsl -- the ultimate url dsl!
#
# You just can't beat this:
#
# $ irb -r url_dsl
# >> include URLDSL
# => Object
# >> http://github.com/defunkt.json