Automatically update a pinned gist with your top leetcode skills.
📌 Check out more pinned gists at Awesome Pinned Gists
- Create a new public gist with your title of choice (e.g 'Top Leetcode Skills') (https://gist.github.com/)
- Create a token with the gist scope and make note of the API token (https://github.com/settings/tokens/new)
- Fork this repo
- Add new secrets in your fork's
Settings
>Secrets and variables
>Actions
:GH_TOKEN
the API token generated in step 2GIST_ID
the ID part of the gist URL (after your username)LEETCODE_USERNAME
your leetcode username
- Finally, go to your profile and add your gist to your pins by clicking
customize your pins
If you want to exclude certain difficulties or individual skills you can do this by adding a variable (variable tab next to secrets) called IGNORED_SKILLS
and enter a list of skills/difficulties to ignore separated by commas.
You can do this by adding a variable (variable tab next to secrets) called HIDE_DIFFICULTY
and setting it to True
.
The Github action runs on a schedule, at 00:00 every day. The action is also triggered when there is a new push to the repo. This can be changed by updating the main.yml
file under .github/workflows