Update a pinned gist to display your LeetCode statistics and showcase your coding skills. Keep your GitHub profile up-to-date with your latest LeetCode achievements and progress. Share your problem-solving journey with the developer community. Show off your dedication and commitment to mastering algorithms and data structures. Let your LeetCode stats speak for themselves and inspire others to join the coding challenge. Keep pushing your limits and strive for excellence in the world of competitive programming.
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gist
scope and copy it. (https://github.com/settings/tokens/new) - Find the username from your LeetCode profile
https://leetcode.com/{username}
Follow these steps to set up the project:
-
Fork this repository: Click on the "Fork" button at the top right corner of this page to create a copy of the repository in your GitHub account.
-
Go to your fork's
Settings
>Secrets
>Add a new secret
for each environment secret:
-
GIST_ID
: Obtain the 32-bit ID from your gist URL. It can be found in the URL of your gist page, which looks like this:https://gist.github.com/{github_username}/
e57c950c2b7ea4d10d4f94cec2af7406
. Copy the ID and add it as a secret with the nameGIST_ID
. -
GH_TOKEN
: Generate a GitHub token with the necessary permissions. To do this, go to your GitHub account settings and navigate to the "Developer settings" section. From there, click on "Personal access tokens" and generate a new token. Make sure to grant the token the necessary permissions. Copy the token and add it as a secret with the nameGH_TOKEN
. -
LEETCODE_USERNAME
: Enter your LeetCode username. This is the username associated with your LeetCode profile.
- Once you have added all the secrets, you are ready to use the project.
❗ Important: Remember to keep your secrets confidential and do not share them with anyone.