GithubHelp home page GithubHelp logo

eliasafara / github-spray Goto Github PK

View Code? Open in Web Editor NEW

This project forked from annihil/github-spray

0.0 0.0 0.0 31 KB

:octocat: Draw on your GitHub contribution graph ░▒▓█

Home Page: https://annihil.github.io/github-spray-generator

License: MIT License

JavaScript 100.00%

github-spray's Introduction

GitHub Spray

npm license

GitHub Spray logo

A CLI to generate sprays for your GitHub contribution history graph

Installation

npm i -g github-spray

Requirements

  • Git
  • Recent NodeJS

Usage

  1. Create a new GitHub repository and copy its url
github-spray -t <text> --multiplier <factor> --push --origin <github_repository_url>

(example)

github-spray -t hello --multiplier 10 --push --origin https://github.com/John/hello.git

Depending on your number of contributions on the given period that you want to spray, you will need to multiply the number of commit per day by a specific factor (--multiplier) so that the spray become more relevant on your calendar heatmap.

github-spray --help

Fonts

github-spray -t <text> --font <font_name>

(example)

github-spray -t Wald0 --font portable_vengeance

github-spray -t Mario? --font mario

led7





Fonts available are in the fonts folder

Invert colors

github-spray -t hello -i

Flip vertical

github-spray -t hello --flipvertical

Flip horizontal

github-spray -t hello --fliphorizontal

Custom pattern

To use a custom pattern, create a JSON file like follow.
The numbers (1 to 4) will determine the number of commit per day, and thus the green's darkness.

[
    "  333  ",
    " 3   3 ",
    "3 2 2 3",
    "3     3",
    "3 222 3",
    " 3   3 ",
    "  333  "
]

github-spray -f <path/to/pattern.json> ...

github-spray -f patterns/space-invaders.json ...

You can use GitHub Spray Generator to graphically draw patterns

Custom start date

github-spray --startdate YYYY-MM-DD ...

The date will be rounded to the nearest sunday.
By default the start date is the nearest sunday of the current date - 53 weeks.

Multiplier: scale colors

github-spray -m <factor> ...

Multiply the number of commit per day by the given factor to make the spray darker or brighter on your calendar heatmap.

Known issues

github-spray's People

Contributors

annihil avatar hectoraldairah avatar jasmeetsinghbhatia avatar jwilk 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.