An open API service indexing awesome lists of open source software.

https://github.com/bd808/profile-life

Github profile page hack
https://github.com/bd808/profile-life

Last synced: 2 months ago
JSON representation

Github profile page hack

Awesome Lists containing this project

README

          

Profile Life
============

Github profile page hack to display a glider moving across my contribution
timeline.

![Example graph](assets/timeline.png)

Inspired by https://github.com/will/githubprofilecheat2

WTF?
====

GitHub has a neat display of historical activity on each user's profile page.
This 53x7 grid shows the number of commits and other GitHub interactions that
the user performed on each day for the last year. Each cell in the graph is
shaded with one of 5 possible colors. These colors correspond to the quartiles
of the normal distribution over the range `[0, max(v)]` where `v` is (issues
opened + pull requests proposed + commits authored) per day.

If your all time high for the last year was 100 contributions in a single day,
the cells would color like this:

| Contributions | Color |
| :-------------- | :---------------------------- |
| 0 | ![#eeeeee](assets/eeeeee.png) |
| 1 - 24 | ![#d6e685](assets/d6e685.png) |
| 25 - 49 | ![#8cc665](assets/8cc665.png) |
| 50 - 74 | ![#44a340](assets/44a340.png) |
| 75+ | ![#1e6823](assets/1e6823.png) |

This script will create a commit history in a repository to "game" this graph
to display a user specified pattern.

Currently the patterns generated are fairly simple. The script reads a file in
the form of a [plaintext Life file][] and outputs a list of shell commands
that will populate a git repository with 23 empty commits for the day
corresponding with a cell that is populated with an `O` character.

Usage
=====

$ ./bin/pattern-to-commits.sh patterns/glider.cells 2012-04-15 | sh
$ git push

[plaintext Life file]: http://www.conwaylife.com/wiki/Plaintext