Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

camaleon

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camaleon

Installable module, available for Linux, Windows and Mac OS. Quickly view information about any exercise available in Udebug and UVA Judge.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Camaleon

Documentación en Español

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

  • Problem information
  • List of shipments per user
  • Test cases for any exercise
  • Compilation of C ++ code
  • Compilation of Java code
  • Compilation of code C
  • Performance Analysis
  • Analysis of test cases

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.

# shortcut: camaleon d 100
$ 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.

# 706667 is the user ID of uva.
# shortcut: camaleon sb 706667
$ 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         #=> Shortcut
$ camaleon compile hello.cpp

Java

$ camaleon c hello.java        #=> Shortcut
$ camaleon compile hello.java

Especificar directorio

$ camaleon c carpeta/hello.cpp
$ camaleon c carpeta/hello.java

Command help

$ camaleon help <comando>

# Ejemplo:
$ camaleon help submissions

Note: If the file name contains spaces then use double quotes to specify the file name:

$ camaleon c "carpeta/nombre archivo.cpp"

Contributing

Camaleon is an open source project. See CONTRIBUTING for details.

LICENSE

This module is released under the [MIT License] license. @juliandavidmr

Keywords

FAQs

Package last updated on 31 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc