Skip to content

CrazyMikha2010/contribution_hack

Repository files navigation

HACK GITHUB CONTRIBUTIONS

Installation 📥

First Copy Repository 🧑‍💻

git clone https://github.com/CrazyMikha2010/contribution_hack.git

Initialise node.js project and Install required packages

npm init -y
npm i jsonfile fs moment simple-git

Open Site 🛜

1st option

Visit my github page if it's not repurposed.

2nd option

In repo, open index.html (right mouse click on file and choose to open in browser or do it any way you want).

Draw Graph 📈

Now you can:

  • Choose year to submit on past/future/present
  • Choose amount(color) of commit on certain day
  • Draw anything you want on graph or click Randomize
  • Clear and start over

After you finished drawing, click Push and commit.json will be downloaded on your machine. Drag this file to directory contribution_hack.

Run and Enjoy! 🏃💨

⚠️ WARNING - If you run the site locally, the graph you drew will be cleared after running the following command:

Open terminal, and run

node index.js

*before running check if file you dragged is named commits.json. otherwise change this line to suitable name.

const { year, commits } = JSON.parse(fs.readFileSync("./commits.json", 'utf-8'))

Wait until All commits pushed! message in terminal. Now refresh your profile and enjoy!

Examples 🐸

github profile

screenshots from site

Didn't Work? 💔

Check email

The email address used for the commits is associated with your account on GitHub. learn more

File names

Make sure names of files correspond to reality. If you're using Windows, you might have to change all / to \ in pathways to files.

Improvements ✅

Fork this repo (and star it pls)! There's still a lot to do. For example

  • Add feature to transform uploaded image to graph
  • Make it more automatic - is it possible to get rid of dragging and terminal commands?
  • Add art library for other users - create multiple drawings and include them in your repo ( or maybe edit index.html;) )
  • Add css - I'm a bad designer

CREDITS 🏆

Shout-out to Fenrir's and Akshay Saini's videos. Check them out!

About

Customise your GitHub contribution graph🐸

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published