Coder Social home page Coder Social logo

contribution's Introduction

Contribution

Draw an image on your GitHub contribution graph.

Examples

Heart Skull
Creeper I need a job

How does it work?

GitHub displays commits in the contribution history graph. Contribution pushes a bunch of commits with a custom date using git commit --date <date>. It bundles multiple commits on a single day to achieve a darker pixel in the graph.

The GitHub contribution graph is 52 ร— 7 pixels and shows up to five shades for activity. This app automatically limits the colors and dimensions of your input image to match these restrictions. Use the preview subcommand if you're not feeling lucky.

Warning: you cannot remove contribution activity on GitHub unless you delete a project, so you probably want to push to a project specifically created for this purpose. Contributions to secret projects may also be shown, depending on your GitHub settings.

Contribution uses your default SSH identity. If you want to use another identity, you can do so by setting the GIT_SSH_COMMAND and GIT_AUTHOR_EMAIL env variables.

Download

You can find prebuilt binaries voor Windows, macOS and Linux in releases.

Or clone the project and build yourself.

If you don't have Paint installed you can use a free online tool like pixilart.com.

How to use

Contribution is provided as a binary with a command line interface.

contribution -help

Draw an image on your GitHub contribution history.
By Blaise Kal, 2021

Preview contribution history graph without pushing
  contribution preview -img /path/to/image.png
Preview usage and options
  contribution preview -help

Push contribution history graph to GitHub
  contribution push -img /path/to/image.png -project username/project
Push usage and options
  contribution push -help

contribution preview -help

Preview contribution history graph without pushing.
Example usage:
  contribution preview -img image.png

  -img string
    	Path to a valid PNG image. (required)

contribution push -help

Push contribution history graph to GitHub
Example usage:
  contribution push -project username/project

  -branch string
    	Git branch to push to. (default "contribution")
  -img string
    	Path to a valid PNG image. (required)
  -project string
    	GitHub username/project to push to. (required)
  -w int
    	Weeks ago of all activity. A value of 2 will move activity two pixels to the left.

contribution's People

Contributors

blaise-io avatar

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.