Code Monkey home page Code Monkey logo

leetgode's Introduction

leetgode

PkgGoDev test

Description

LeetCode CLI for Gophers.

VS.

Requirement

The leetgode CLI needs the authorization to execute some sub commands. Specifically, it needs LEETCODE_SESSION, and csrftoken.

  1. Open chrome and paste the link below to the chrome linkbar.
    • chrome://settings/cookies/detail?site=leetcode.com
  2. Copy the contents of LEETCODE_SESSION, and csrftoken.
  3. Export below environment values by the use of LEETCODE_SESSION, and csrftoken.
export LEETCODE_SESSION=${LEETCODE_SESSION}
export LEETCODE_TOKEN=${csrftoken}

Usage

leetgode help
Usage: leetgode is leetcode cli for gophers.

SubCommands:
 exec     Submit solution
 generate Generate the skeleton code with the test file by id
 help     Help shows usages
 list     List problems
 pick     Pick a problem by id
 test     Test solution

Install

You can download binary from release page and place it in $PATH directory.

go get

go get -u https://github.com/budougumi0617/leetgode/cmd/leetgode

macOS

If you want to install on macOS, you can use Homebrew.

brew install budougumi0617/tap/leetgode

now setting...

Contribution

  1. Fork (https://github.com/budougumi0617/leetgode/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create new Pull Request

License

MIT

Author

Yoichiro Shimizu(@budougumi0617)

leetgode's People

Contributors

budougumi0617 avatar

Watchers

 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.