This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit e4cffc68edca488683a03c100b339422d3f2fb67
tree b39aace7688f604ada20731295f1612f976dcca2
parent dbcc516739a3d54de5d3f1faef7a22260b78b58c
tree b39aace7688f604ada20731295f1612f976dcca2
parent dbcc516739a3d54de5d3f1faef7a22260b78b58c
contest /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Mar 16 19:03:58 -0700 2009 | |
| |
README.textile | Sat Mar 21 13:57:34 -0700 2009 | |
| |
Rakefile | Sat Mar 21 13:57:34 -0700 2009 | |
| |
lib/ | Sat Mar 21 11:05:42 -0700 2009 | |
| |
test/ | Tue Mar 17 14:43:31 -0700 2009 |
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 nokogiriInstructions
Clone 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… grossbergOptional
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






