Przemek's blog

By Przemek, history, 8 years ago, In English

Hi all, I just released second version of cf — tool for submitting code from command line.

Usage is in readme on github: https://github.com/Komosa/cf

In order to use it on tommorow's contest, just type cf con 1463


why? all existing solutions was written in python/ruby, and I think that such a tool shouldn't depend on them. It is also up to date with current page layout/api.

Feel free to discuss here, but if you find any bugs or want new features, please (also) fill issue on github.

  • Vote: I like it
  • +12
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +5 Vote: I do not like it

Hi, new version is released. It is battle tested in regular contest now.

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks for making this! Can we use it to submit to gym?

  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Not yet, I will add it soon.

  • »
    »
    7 years ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    I just published new version. I correctly submitted code to one of past/finished gyms with it.

    Could you please check if it matches your expectations? Just use gym number in place of contest/problem code. (It could be found in all links to gym problems/problemsets, and should be larger than 100000).

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can I use this with cygwin? How?

  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    If you don't mind using precompiled binary, I think that version build for windows and placed in appropriate location (aka PATH) should work. Did you tried that?

»
4 years ago, # |
  Vote: I like it +10 Vote: I do not like it

Can you provide the link for the documentation of the submission API which was used?

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    No particular official cofeforces.com API was used, I don't even know if it was available at the time of creation.

    During development, I just looked up all needed URLs, that was typical way of doing that kind of software (at least for me ;)) Looking at the code, URL for submission is http://codeforces.com/contest/675/submit?csrf_token=03110b969ffffff36c768b25efa1b3b1 with appropriate details (contest id, CSRF token value).

    I didn't used the site (and thus my wrapper) over 3 years now.

    If you (or anyone reading) have any recent experience with this tool, please let me know — I could fix any compatibility issues or add note that it is obsolete (depending on level of discrepancy). If you are into golang programming, I will be also happy to accept any GH' PRs.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Meh, logging API changed, so tool is no longer working.

»
3 years ago, # |
  Vote: I like it +11 Vote: I do not like it

I updated tool to work with current codeforces.com. https://github.com/Komosa/cf/releases/tag/v2.0.0

I will publish binaries soon, ;)

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Przemek (previous revision, new revision, compare).

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

This is just fantastic. Thank you!!