An exceptionally handsome way to track your Stack Overflow badges.
Created by Adam & Stephanie Sharp.
A Dashing widget that tracks your progress toward unearned badges on Stack Overflow. It randomly selects a badge you haven't earned and shows your progress, or suggests things you could try in order to earn the badge. The widget's background colour dynamically changes depending on the badge's rank (bronze, silver, or gold).
You can view the demo dashboard at badgeoverflow.herokuapp.com. The code is available on GitHub.
-
Install the widget:
$ dashing install 6474970
-
Add the gem
badgeoverflow-core
to yourGemfile
:gem 'badgeoverflow-core', :git => "https://github.com/sharplet/badgeoverflow-core.git"
-
Create the file
config/badgeoverflow.yml
and set the user ID you want to track progress for:user_id: 1
-
Add the widget to your dashboard:
<li data-row="2" data-col="1" data-sizex="2" data-sizey="1"> <div data-id="unearned_badges" data-view="UnearnedBadges" data-title=""></div> </li>
-
Optionally, add the font Cabin to
dashboards/layout.erb
:<link href='//fonts.googleapis.com/css?family=Cabin:400,500,600,700' rel='stylesheet' type='text/css'>
The widget talks to the Stack Exchange API via the
badgeoverflow-core
gem,
which we wrote while developing the widget. The most significant
part of this gem is the logic for calculating a user's progress toward
a badge. We've implemented progress calculation for a large number of
badges, and tried to make it as easy as possible to add more.
For badges where we aren't (yet) calculating progress, we display the
badge's description.