public
Description: Create your own Twitter follower contest
Homepage: http://giantrobots.thoughtbot.com/2009/3/4/win-a-1295-dollar-prize
Clone URL: git://github.com/thoughtbot/contest.git
commit  e4cffc68edca488683a03c100b339422d3f2fb67
tree    b39aace7688f604ada20731295f1612f976dcca2
parent  dbcc516739a3d54de5d3f1faef7a22260b78b58c
README.textile

Contest

Run a contest to select a random person who follows you on Twitter.

Prerequisites

Two excellent gems:

sudo gem install adamwiggins-rest-client sudo gem install nokogiri

Instructions

Clone the repo:

git clone git://github.com/thoughtbot/contest.git

Create a ~/.twitter/credentials.yml file. This file contains your Twitter credentials. For example:

name: thoughtbot password: slainte

Run the program:

rake contest

The output will be:

authenticating, caching followers… (this may take a moment) and the winner is… grossberg

Optional

Create 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