Run a contest to select a random person who follows you on Twitter.
Two excellent gems:
sudo gem install adamwiggins-rest-client sudo gem install nokogiriClone the repo:
git clone git://github.com/thoughtbot/contest.gitCreate a ~/.twitter/credentials.yml file. This file contains your Twitter credentials. For example:
name: thoughtbot password: slainteRun the program:
rake contestThe output will be:
authenticating, caching followers… (this may take a moment) and the winner is… grossbergCreate a ~/.twitter/ineligible.yml file. It contains a list of followers who are not eligible to win the contest, such as employees of your company. For example:
ineligible: - cpytel - jyurek - jankowski - tsaleh - croaky - joeferris - mikeburns - cssboy - kevinburg - jayunit - qrush - umbrellatoday - widgetfinger