Skip to content
View legendy4141's full-sized avatar
🎯
Focusing
🎯
Focusing

Organizations

@jazzband @dev-protocol @Py-Contributors @Design-and-Code @Devs-Dungeon @Huniko-Team @infraform @SecureMash

Block or report legendy4141

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
legendy4141/README.md

My GitHub contributions as a Game of Life

GitHub Game of Life

(Be sure to click on it for the infinite scrolling version.)

What's this?

This takes my GitHub contribution graph and uses it as the initial state for Conway's Game of Life, a popular cellular automaton that is often built by beginning software developers as an easy-to-implement but interesting piece of software.

Conway's Game of Life only defines two initial states for cells, but there are multi-color variants. This is a variant of "Quad Life" (chosen because the GitHub contribution graph has four colors that represent the intensity of contributions for a given day): in the typical Game of Life rules, a graph with a lot of contribution would die out in the first iteration (because the cells would be overcrowded), which seems to punish those with a lot of contributions, giving them a boring Game of Life. Intead, this variant "decays" the level of contribution, so cells will fade away instead of dying immediately.

How does it work?

This uses a JavaScript library called contributions to create a data structure with a GitHub contribution graph, and uses that as the initial state for another JavaScript library called dat-life.

A simple Node.js application called github4life -- so named because it takes a GitHub contribution graph and turns it into a 4 color Game of Life -- renders this as an animated GIF. When talking to GitHub's image caching service (camo) it will render 20 frames and then stop (so that the resulting image can actually be cached) but when you hit it with your web browser, it will render the game of life on-demand - infinitely continuing to deliver you the next state as a new frame in the GIF, forever.

Popular repositories Loading

  1. Football-Object-Detection Football-Object-Detection Public

    Jupyter Notebook 15

  2. awesome-landing-pages awesome-landing-pages Public

    Forked from PaulleDemon/awesome-landing-pages

    Free to use landing pages for SaaS founders, freelancers, agencies and businesses

    HTML 2

  3. heyday-web heyday-web Public

    Forked from heydayle/heyday-web

    Personal Web

    Vue 1

  4. texz_portfolio texz_portfolio Public

    Forked from Texzcorp/texz_portfolio

    TypeScript 1

  5. ethomson ethomson Public

    Forked from ethomson/ethomson

    1

  6. Head-Pose-Estimation Head-Pose-Estimation Public

    Jupyter Notebook