Coder Social home page Coder Social logo

acboost's Introduction

ACBoost

A simple tool that helps you WA faster, therefore AC faster.

Usage

  1. Create a new project

    . acboost-create <problem_name> [problem_url]

    This will create a new project under $(date +%Y)/$problem_name and cd into it.

  2. Type your answer in src/${problem_name}.cpp.

  3. Edit some cases and their answers in cases/*.in, cases/*.out.

  4. Run test

    make test

    Or simply just make.

    An example output (with the ac_boost theme).

    AC example

  5. Enjoy your WAs and ACs.

Advance Usage

  1. Use custom theme.

    Custom theme can be load by supplying ACBOOST_THEME variable.

    ACBOOST_THEME=$ACBOOST_ROOT/themes/ac_boost make test

    You can provide your own theme and use it this way. Refer to themes/default to learn more.

  2. You can put the variables in your shell login script to preserve your configuration.

    Edit ~/.bashrc (if you use bash).

    ACBOOST_ROOT=$your_ACBOOST_ROOT
    ACBOOST_THEME=ac_boost # load theme from $ACBOOST_ROOT/themes/
    
    # use this to boost your access to ACBoost
    alias acboost-create=". $ACBOOST_ROOT/acboost-create"
  3. Specify your own prefix when creating new project.

    By default projects will be created under $(date +%Y). You can specify your own prefix.

    ACBOOST_DIRPREFIX=easy_problems acboost-create problem_a

    You can also specify this parameter via your login script.

  4. Test ACBoost itself.

    cd metatest
    # Create test projects
    make create-test-projects
    # Run test
    make test

FAQ

  1. Cannot execute scripts.

    Grant permission to the scripts.

    chmod ug+x acboost-create
    chmod ug+x scripts/*

acboost's People

Contributors

donny-hikari avatar

Watchers

 avatar  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.