Camaleon
Camaleon is a multiplatform installable module, available for Linux, Windows and Mac OS. Quickly obtain, view and test exercises developed in C++ and Java. camaleon uses the V8 engine Google, so you need to install NodeJS.
For more information see udebug and UVA
Features
Installation
$ [sudo] npm install -g camaleon
...
$ camaleon -h
Information of an exercise
camaleon provides access basic information of an exercise. The data are provided by uhunt and camaleon.
$ camaleon desc 100
βββββββ¬βββββββββ¬βββββββββββββββββββββ¬ββββββββ¬βββββββββ
β pid β number β title β limit β status β
βββββββΌβββββββββΌβββββββββββββββββββββΌββββββββΌβββββββββ€
β 36 β 100 β The 3n + 1 problem β 3000 β 1 β
βββββββ΄βββββββββ΄βββββββββββββββββββββ΄ββββββββ΄βββββββββ
Submissions
Consult list of shipments made by a particular user.
$ camaleon submissions 706667
ββββββββββββββββ¬ββββββββββββββββββββββββββ
β name β user name β
ββββββββββββββββΌββββββββββββββββββββββββββ€
β Julian David β anlijudavid@hotmail.com β
ββββββββββββββββ΄ββββββββββββββββββββββββββ
βββββββββββββ¬ββββββββββ¬ββββββββββββ¬βββββββ¬ββββββββ¬βββββββββββββββββββββββββββ
β Reference β problem β result β time β code β date β
βββββββββββββΌββββββββββΌββββββββββββΌβββββββΌββββββββΌβββββββββββββββββββββββββββ€
β 17787180 β 2253 β Accepted β 0 β c++11 β Thu Aug 04 2016 13:34:37 β
βββββββββββββΌββββββββββΌββββββββββββΌβββββββΌββββββββΌβββββββββββββββββββββββββββ€
β 18144493 β 3666 β Accepted β 170 β java β Sat Oct 08 2016 11:18:18 β
βββββββββββββ΄ββββββββββ΄ββββββββββββ΄βββββββ΄ββββββββ΄βββββββββββββββββββββββββββ
...
Test cases
Obtain all test cases available for a given exercise:
$ camaleon cs 100
βββββ¬βββββββββ¬βββββββββ¬ββββββββ¬ββββββββββββ¬ββββββββ
β # β Number β DataID β User β Date β Votes β
βββββΌβββββββββΌβββββββββΌββββββββΌββββββββββββΌββββββββ€
β 5 β 3 β 821829 β Ryuuk β Fri Jan β¦ β 3 β
βββββ΄βββββββββ΄βββββββββ΄ββββββββ΄ββββββββββββ΄ββββββββ
Case 5 by Ryuuk :
2 1596 β
99 9999 β
1 1999 β
340 30100 β
5 6 β= Estos son los casos
7 10 β
1 98746 β
9999 9998 β
...
Compile code
Cpp
$ camaleon c hello.cpp
$ camaleon compile hello.cpp
Java
$ camaleon c hello.java
$ camaleon compile hello.java
Directory specific
$ camaleon c folder/hello.cpp
$ camaleon c folder/hello.java
Command help
$ camaleon help <comando>
$ camaleon help submissions
Note: If the file name contains spaces then use double quotes to specify the file name:
$ camaleon c "folder/file name.cpp"
Contributing
Camaleon is an open source project. See CONTRIBUTING for details.
LICENSE
This module is released under the [MIT License] license. @juliandavidmr