Giter Site home page Giter Site logo

cpbooster's Introduction

cpbooster · GPLv3 license npm version

Competitive Programming Booster 🡲 https://searleser97.github.io/cpbooster/

About

cpbooster is a cross-platform CLI tool designed to boost competitive programmer's speed during contests by automating various routine tasks like compiling and testing, debugging, cloning testcases, loading template, etc. The console command suits any coding environment (i.e. VSCode, Jetbrains IDEs, Vim, Emacs, Geany, Sublime Text, ...) and it’s very easy to use. Vim / NeoVim users can install cpbooster.vim plugin to boost their speed even more.

Using NeoVim:

video-demo-min

For Installation and Setup Instructions Visit cpbooster Website

https://searleser97.github.io/cpbooster/

Features

  1. cpbooster comes with a short alias command called cpb to avoid writing the long command each time

  2. Automatically clone sample testcases files with corresponding source code files with template loaded into a desired directory

    • cpb clone waits for competitive companion plugin to send parsed data for each problem
  3. Test your code against sample testcases quickly

    • cpb test mycode.cpp test your program against all available test cases
    • cpb test mycode.cpp -t 1 test your program against the test case with the given id
    • cpb test /some/path/mycode.cpp test a program that is not located in your current location

    Supported results:

    • AC (Accepted)
    • WA (Wrong Answer) Shows differences between accepted output and your output beautifully
    • TLE (Time Limit Exceeded)
    • RTE (Runtime Error)
    • CE (Compilation Error)
  4. Run code with your own debugging flags easily

    • cpb test mycode.cpp -d to use keyboard as input
    • cpb test mycode.cpp -t 2 -d to use a test case file as input
    • cpb test /some/path/mycode.cpp -d debug a program that is not located in your current location
  5. Submit your code from the terminal really quickly.

    • cpb submit mycode.cpp submits your file to the corresponding judge.
  6. open your preferred editor in the contest directory immediately after cloning it. See Editors

  7. Create source files with corresponding template loaded

    • cpb create a.py creates single file with corresponding template loaded based on file extension
    • cpb create {a..n}.cpp creates multiple consecutive files from "a.cpp" to "n.cpp"
    • cpb create {a...n}.cpp same as previous command (Any amount of dots greater than 1 work)
    • cpb create {a-n}.cpp same as previous command (Single dash also works)
    • cpb create /some/path/a.cpp creates "a.cpp" in the specified path instead of current location
    • cpb create /some/path/{a-n}.cpp creates "a.cpp ... n.cpp" in the specified path instead of current location
  8. Vim plugin cpbooster.vim boosts your speed even more

  9. Flat File Structure. See Why Flat File Structure

Future updates

  • Add the possibility to test interactive problems
  • Add the possibility to test current file using test cases of another file (test --as <filename>)
  • Add the possibility to debug current file using test cases of another file (test --as <filename> -d)
  • Add support for Java
  • Fully support windows CMD.
  • Add Stress tests (using brute force solution and tests generator)

Final Notes

  • I am open to feature requests.
  • Pull Requests are also welcome.

License

cpbooster is licensed under the GNU General Public License v3.0

cpbooster's People

Contributors

abiisnn avatar dependabot[bot] avatar goberinfinity avatar hugoduar avatar p00f avatar searleser97 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.