git clone https://github.com/CrazyMikha2010/contribution_hack.gitnpm init -y
npm i jsonfile fs moment simple-git1st 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).
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.
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!
github profile
screenshots from site
The email address used for the commits is associated with your account on GitHub. learn more
Make sure names of files correspond to reality. If you're using Windows, you might have to change all / to \ in pathways to files.
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
Shout-out to Fenrir's and Akshay Saini's videos. Check them out!





