Code Monkey home page Code Monkey logo

My GitHub contributions as a Game of Life :octocat:

GitHub Game of Life

Overview of my contributions on Github :octocat:

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.

Aloysious Benoy's Projects

accelstepper icon accelstepper

A small fork of AccelStepper v1.3 with AF_motor (Adafruit motor shield) support!

basic-video-call icon basic-video-call

Sample app to join/leave a channel, mute/unmute, enable/disable the video, and switch between front/rear cameras.

deta_pack icon deta_pack

A flutter package for easily using deta base in flutter apps

drowsy icon drowsy

Source code for drowsiness detection system using facial landmark detection and Eye-Aspect-Ratio. Ported to work on the Nvidia Jetson Nano SBC. All credits to @davisking for dlib and Adrian Rosebrock for the starter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.