-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.mustache
36 lines (25 loc) · 1.27 KB
/
main.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Automatic Leetcode Progress Tracker
The README.md is built using mustache, to automatically track your progress in Leetcode
## Installation Instructions
1. run `$ npm init`
2. run `$ npm i mustache`
3. run `$ npm i puppeteer`
4. Enable workflows in your repository on GitHub (repo > Actions > Workflows)
5. Format your README template by editting `main.mustache`
6. In the `leetcode` folder, save your submissions as `<SNo>_<easy/med/hard>_<hyphen-separated-problem-name>.*`
7. Push your changes (remeber to **Pull** first to update your local repository with the README auto-genenerated at the last Push)
8. Run steps 6 and 7 as you solve more questions!
## Preview of the Leetcode Statistics Tracker
Problems Solved: **{{num_total}}**
|Easy| Medium |Hard|
|:---:|:---:|:---:|
| {{num_e}}/{{total_e}} | {{num_m}}/{{total_m}} | {{num_h}}/{{total_h}} |
</br>
|#| Title |Difficulty|
|:---:|:---|:---:|
{{#prob}}
{{qno}} |{{qname}} |{{diff}}|
{{/prob}}
</br></br>
Check out [this awesome tutorial](https://medium.com/swlh/how-to-create-a-self-updating-readme-md-for-your-github-profile-f8b05744ca91) on self-updating README files.
Check out [this gist](https://gist.github.com/afig/be5ab20c50062dba7cb835e30206659a) on how to create custom badges using [shields.io](http://shields.io).