• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate your personal LeetCode website with one command!

LeetCode Site Generator

Generate your personal LeetCode website with one command!

Example Website

leetcode-solutions

screenshot

Requirements

  • Make sure you have the recent version of node.js installed.
  • yarn(optional), you can use npm.

Features

  • Support both leetcode.com and leetcode-cn.com accounts.

Installation

yarn global add leetcode-site-generator or npm i -g leetcode-site-generator

Usage

  1. Run installation script: leetcode-site init, This will create a project called leet-site-base on your current directory.
  2. Go to the website directory of leet-site-base, run yarn download. It will open a popup window and ask you to input your LeetCode username and password. login
  3. Waiting for downloading process finished, then run yarn & yarn start.

Publish to Github pages

  1. Change the following keys in siteConfig.js
 const siteConfig = {
   // ...
   url: 'https://beizhedenglong.github.io', // Your website URL
   baseUrl: '/leetcode-site-generator/', // Base URL for your project
   projectName: 'leetcode-site-generator', // Your project name
   organizationName: 'beizhedenglong', // Your github username
   // ...
 }
  1. Run GIT_USER=<your github username> CURRENT_BRANCH=master USE_SSH=true yarn run publish-gh-pages

List of commands

Usage: leetcode-site [options] [command]

Options:
  -V, --version       output the version number
  -h, --help          output usage information

Commands:
  download [options]  Download your new accepted code from LeetCode.
  init                Generate your personal LeetCode website.
  login               Log in to your Leetcode account.
  logout              Log out of current account.

download

Usage: download [options]

Download your new accepted code from LeetCode.

Options:
  -a, --all   Download all your accepted code from LeetCode.
  -h, --help  output usage information

More Repositories

1

rough-charts

πŸ“ˆ A responsive, composable react charting library with a hand-drawn style.
TypeScript
1,516
star
2

weird-fonts

𝑨 π‘±π’‚π’—π’‚π‘Ίπ’„π’“π’Šπ’‘π’• π’‘π’‚π’„π’Œπ’‚π’ˆπ’† 𝒕𝒉𝒂𝒕 𝒕𝒖𝒓𝒏 π’‚π’π’‘π’‰π’‚π’π’–π’Žπ’†π’“π’Šπ’„ 𝒄𝒉𝒂𝒓𝒂𝒄𝒕𝒆𝒓𝒔 π’Šπ’π’•π’ π’˜π’†π’Šπ’“π’… 𝒇𝒐𝒏𝒕 π’”π’•π’šπ’π’†.
TypeScript
609
star
3

react-hooks-lib

A set of reusable React Hooks.
JavaScript
540
star
4

vue-hooks-form

Building forms with vue composition API.
TypeScript
141
star
5

reactablejs

A react high-order component for interact.js(drag and drop, resizing and multi-touch gestures).
TypeScript
62
star
6

react-multi-crops

A multiple cropping component for React
JavaScript
40
star
7

reason-hooks-lib

A set of reusable ReasonReact hooks.
Reason
32
star
8

reason-hooks-testing-library

ReasonML bindings for react-hooks-testing-library
Reason
25
star
9

reason-unstated

A simple reason react state management library that help you share hook state and logic easily.
OCaml
15
star
10

chrome-extension-starter-kit

Chrome Extension Starter Kit
JavaScript
13
star
11

reason-powerplug

πŸ”Œ Renderless Containers For ReasonReact
OCaml
11
star
12

nqm

npm with query
JavaScript
8
star
13

hooks-to-others

Transform react hooks into render props and high-order component patterns.
TypeScript
4
star
14

bookmark-search

A Chrome extension for searching bookmark quickly.
JavaScript
4
star
15

mac-look-up-log

Look up workflow for macOS
3
star
16

redux-and-react-redux

Simple Redux and React Redux implementation
JavaScript
3
star
17

js-lens

Safely accessing and updating nested object with functional features.
TypeScript
3
star
18

vue-reactivity

JavaScript
2
star
19

fusuma-imgs

1
star
20

mini-context-store

A react state management library using new context api
JavaScript
1
star
21

leetcode-solutions

Victor's LeetCode Website.
JavaScript
1
star
22

gatsby-starter-gcn

JavaScript
1
star
23

ant-design-snippets

An ant design snippets extension for VS Code.
1
star
24

safety-redux

Query and mutate Redux state safely.
JavaScript
1
star
25

beizhedenglong.github.io

beizhedenglong.github.io
HTML
1
star
26

rc-value

Make React component switch between Controlled Component and Uncontrolled Component easily.
JavaScript
1
star