Two of the github guys: kneath and technoweenie I believe, implemented exactly this for measuring contributions to open source projects.
site: http://calendaraboutnothing.com/ blog post announcing it: http://techno-weenie.net/2008/10/6/calendar-about-nothing/