Rather than just starting this blog off with “hello world” and calling it good, I thought I would try something a bit different. On each github user profile there is a calendar that highlights the user’s public contributions to different projects as a grid of pixels that roughly spans a year. My [github account][github] looks like the following, and mainly contains a grid of pixels that is an empty canvas ripe for artful commits.
So I hacked together visual git, a simple script that uses the GitHub API to commit a file on specific days to write messages on the github contribution calendar. There are three main steps in the creation of the below hello world pixel banner. First convert a string of text into set of binary pixel locations with some offsets. Second, use these pixels to determine which dates to preform commits. Third, for each of these dates, make a commit to a repo. The results are committed to the DangerZone
After writing this script, I found a number of projects (e.g. Gitfiti, GitHubp Profile Cheat) that do something similar, but generally at the git level. This project does not compete with these projects, and mainly just a fun weekend project. I think that I could clean up the code a bit to turn it into a nice example of using the github api to make a commit like Pithub.