Giter VIP home page Giter VIP logo

leetcode-badge's Introduction

CircleCI Go Report Card

leetcode 徽标

快速开始

  1. 获取 {LeetCode_ID},根据 LeetCode 获取自己的{LeetCode_ID}。例如 https://leetcode.com/haozibi{LeetCode_ID}haozibi
  2. 替换 {LeetCode_ID},根据自己的需求替换下面 URL 中的 {LeetCode_ID}

使用

做题记录

  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/chart/submission-calendar/{LeetCode_ID}.svg

注意事项:

  1. 暂时只支持**区
  2. 只有开启了 LeetCode 的 设置-通知与隐私-显示我的提交记录 选项才支持此功能
  3. 好像即使开启了,一天后才能看到效果
  4. 暂时只能看到 当前年 的结果,正在准备优化

用户名

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/{LeetCode_ID}.svg

排名

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/ranking/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/ranking/{LeetCode_ID}.svg

通过题目数/总题目数

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/solved/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/solved/{LeetCode_ID}.svg

通过题目数/总题目数 比例

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/solved-rate/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/solved-rate/{LeetCode_ID}.svg

通过提交/总提交

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/accepted/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/accepted/{LeetCode_ID}.svg

通过提交/总提交 比例

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/accepted-rate/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/accepted-rate/{LeetCode_ID}.svg

关注数

只有**区可使用

  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/badge/following/{LeetCode_ID}.svg

被关注数

只有**区可使用

  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/badge/followers/{LeetCode_ID}.svg

排名记录图表

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/chart/ranking/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/chart/ranking/{LeetCode_ID}.svg

支持 day 参数,指定查询天数,最大查询日期为 30 天

例如: 查询之前 15 天的数据,https://leetcode-badge.haozibi.dev/v1cn/chart/ranking/haozibi.svg?day=15

答题数量图表

  • LeetCode: https://leetcode-badge.haozibi.dev/v1/chart/solved/{LeetCode_ID}.svg
  • LeetCodeCN: https://leetcode-badge.haozibi.dev/v1cn/chart/solved/{LeetCode_ID}.svg

支持 day 参数,指定查询天数,最大查询日期为 30 天

例如: 查询之前 15 天的数据,https://leetcode-badge.haozibi.dev/v1cn/chart/solved/haozibi.svg?day=15

自定义

此项目依托 shields.io,支持所有 shields 的 Query 参数

例如:

  • https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?logo=leetcode
  • https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?color=ff5983&logo=leetcode
  • https://leetcode-badge.haozibi.dev/v1cn/ranking/haozibi.svg?style=for-the-badge&color=ff5983&logo=leetcode

更多 logo 可以查看 simpleicons.org 或者 https://github.com/simple-icons/simple-icons/blob/develop/slugs.md

致谢

JetBrains 开源证书支持

leetcode-badge's People

Contributors

adevjoe avatar haozibi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.