Skip to content

Instantly share code, notes, and snippets.

View bvandgrift's full-sized avatar

Ben Vandgrift bvandgrift

View GitHub Profile
@bvandgrift
bvandgrift / delighter.rb
Created November 18, 2009 17:27
yank twitter links into delicious
#!/usr/bin/env ruby
# = Delighter - pull your twitter links into delicious.
#
# Takes the first link and submits it to delicious. The description
# will be the text up to the beginning of the link, the tags whatever
# hashtags are on the tweet. Let me know if you improve on this, it was
# pretty q&d.
#
# author: Ben Vandgrift <br/>
if @foo.save && @bar.save
# if @foo fails, then @bar.save never gets called. BAD!
end
# instead:
if @foo.save & @bar.save
# both methods get called regardless
end
# http://neovore.com / somethingfamiliar(at)gmail.com
# dirt simple twitter retweeter with twibot
require 'twibot'
#-- in ./config/bot.yml:
#login: your_user_name
#password: your_password
#include_friends: true
#-- EOF