A Dashing widget for displaying the number of unsolved Project Euler problems for an account.
See a live demo here.
Due to the fact that Project Euler does not, at current time of writing, have a public API, I wrote some code to scrape the data off their webpage. I decided to run the script on a personal machine at home and push the data to my Dashing application.
Setup the following environment variables:
PROJECT_EULER_USERNAME
PROJECT_EULER_PASSWORD
AUTH_TOKEN
: the auth token of your Dashing application
Add it to your Dashing application's Gemfile:
gem 'mechanize'
and run bundle install
.