/leetcode-skills-box

Update a pinned gist to contain the top skills practiced on leetcode.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Leetcode Skills Box

Automatically update a pinned gist with your top leetcode skills.

📌 Check out more pinned gists at Awesome Pinned Gists

Getting Started

  1. Create a new public gist with your title of choice (e.g 'Top Leetcode Skills') (https://gist.github.com/)
  2. Create a token with the gist scope and make note of the API token (https://github.com/settings/tokens/new)
  3. Fork this repo
  4. Add new secrets in your fork's Settings > Secrets and variables > Actions:
    • GH_TOKEN the API token generated in step 2
    • GIST_ID the ID part of the gist URL (after your username)
    • LEETCODE_USERNAME your leetcode username
  5. Finally, go to your profile and add your gist to your pins by clicking customize your pins

Ignoring difficulties/skills

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.

Hiding difficulty labels

You can do this by adding a variable (variable tab next to secrets) called HIDE_DIFFICULTY and setting it to True.

Information

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