Skip to content

pakhandi-zz/TOJHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOJHelper : V.0.6

Under Testing

A batch-testing sublime plug-in for Timus Online Judge

This application is to assist a competitive-programmer while practicing on TOJ. This application downloads all the sample test cases for a problem and runs a user's solution program on all these test cases so that no time is wasted on manual checking of the solution and then directly submits the solution to TOJ without leaving the editor.

For now the application is for C++ users only.

Make Sure you have read the Installation and Usage very very carefully.

Index

  1. Requisites
  2. Installation
  3. Usage
  4. Technology Used
  5. Testing
  6. Contrubutors
  7. FAQ

Requisites

  • Linux (Tested on Ubuntu-14.04)
  • Internet Connection (it should be working on terminal)
  • Sublime Text-3
    • To check Sublime is installed correctly
      1. Open a terminal window.
      2. Run "subl".
      3. If Sublime opens up, everything is perfect.
  • A default browser
  • Working g++
    • To check g++ is working
      1. Open a terminal window.
      2. Run "g++".
      3. If it identifies the command, everything is perfect.
  • Python libraries
    • mechanize
    • bs4 (BeautifulSoup)

Installation

  1. Make sure you have Python and all the dependencies installed (Mentioned in Requisites).
  2. Download the files and extract.
  3. sudo ./install will install the plugin.
  4. Change the Build System (Tools -> Build System) to TOJHelper.
  5. GoTo TOJHelper -> JudgeId & LanguageId and set your JudgeId and LanguageId.
  6. If you are working behind proxy, goto TOJHelper -> Proxy and set the proxy.

Usage

  • After the installation, you should see a new menu in the menu bar, Buggy.
  • Click on the Buggy menu and you'll be able to see all the options there.
    • If you are not able to see all the options, "Tools -> Build System" and select CF.
  • Make sure the name of the file is same as the question number. Example : 1234.cpp
  • Make sure Sublime Side-Bar is visible (View -> Side Bar -> Show Side Bar).
  • To start parsing the test-cases, (TOJHelper -> Start).
  • For parsing the test-cases, provide the question number.
  • Compile the code before running it on test-cases (Ctrl+B or TOJHelper -> Compile)
  • To Run the code (TOJHelper -> Run -> Batch Test / Custom Test)
  • If you want you can change the key-bindings too.
  • If you are working behind proxy, goto TOJHelper -> Proxy and set the proxy.

Technology Used

  • Python modules mechanize and BeautifulSoup.

Testing

The program has been tested on Ubuntu14.04, 64-bit

Contributors

  1. Hena Firdaus
  2. Asim Krishna Prasad

For Hugs and Bugs drop a mail at asimkprasad@gmail.com

About

A Sublime plugin to help programmers who practice on TOJ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published