endiliey / idne Goto Github PK
View Code? Open in Web Editor NEW:gem: Codeforces submit command line tool
:gem: Codeforces submit command line tool
Hey, I just tried out this tool. It seems to get the job done, but I feel the UX could be a bit better.
Improved installation process
pip
Currently username / password has to be specified inside utils/conig.py
$HOME/codeforces
Bundled under one main script
idne
that has two arguments
parse
submit
Improvements to the parse
script
Add support for Python language
Take optional argument for problem name: A
, B
etc.
In general, the test.sh
can be refactored
idne run
We could even fetch the problem statement (the entire text) and add it to the problem code file itself (.cpp
, .py
)
So one can look at the problem statement in the editor itself
Similarly, the test cases could be written inside the code file too
Then, the idne run
command could just extract the test cases from the code file itself, and run them!
What are your thoughts?
Dear idne Maintainers,
As I was following the tutorial, at the following jupyter notebook line
idne 454A A.cpp
I get the following error
Traceback (most recent call last):
File "/usr/local/bin/idne", line 9, in <module>
load_entry_point('Idne', 'console_scripts', 'idne')()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/neo/idne/idne.py", line 42, in cli
enter_form['handle'] = config.username
File "/usr/local/lib/python2.7/dist-packages/robobrowser/forms/form.py", line 216, in __setitem__
self.fields[key].value = value
File "/usr/local/lib/python2.7/dist-packages/werkzeug/datastructures.py", line 784, in __getitem__
raise exceptions.BadRequestKeyError(key)
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
the tool is unable to submit answers for live contests.This is a great setback and greatly lowers the usability of the tool.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.