Giter Site home page Giter Site logo

cargo-boj's People

Contributors

bubbler-4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cargo-boj's Issues

Submit: Refer to language by name

Suggested by unta1337 in #1:

$ cargo boj submit 1000 --path='./1000.cpp' --lang=84

could be written as

$ cargo boj submit 1000 --path='./1000.cpp' --lang='C++17'

Ideas:

  • Use the list on Submit page (parse children options of #language, which look like <option value="95" data-mime="text/x-c++src" selected="">C++20</option>)
  • Reject language ID/name if it is not on the list (potentially useful with lang-restricted problems), saving a request
  • Allow user to add short aliases for complex language names (e.g. c -> C2x (Clang))

Submit: Fetch submission result differently

Apparently there's a better way to check submission status than to fetch the entire web page.

  • Address: https://www.acmicpc.net/status/ajax
  • Payload: solution_id=74122828 as form data
  • Response looks like
    {
        "solution_id": "74122828",
        "result": "2",
        "result_color": "compile",
        "result_name": "\ucc44\uc810 \uc900\ube44 \uc911", // "채점 준비 중"
        "contest_not_show": false,
        "contest_hide_result": false,
        "contest_hide_problem": false
    }

If it works, CLI can probably update the status more frequently, and also potentially show the percentage.

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.