Skip to content

peterarmstrong/contest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published