Coder Social home page Coder Social logo

tools's Introduction

  1. Install sublime Input plugin from here : https://github.com/mavidser/SublimeInput

  1. Restart sublime input and now open KeyBindings-user file using : Preferences -> KeyBindings-User

  1. Copy content of SublKeyMap file(Present at Tools/SublEss directory) into it.

  1. Now open Sublime Input Settings-User file using : Preferences -> Package Settings -> SublimeInput -> Settings-User

  1. Copy content of SublInp file(Present at Tools/SublEss directory) into it.

  1. Now install gettc(TopCoder tool for offline practice) from here : https://github.com/seri/gettc

  1. Now copy runner.rb and runner.sh (files present at Tools/gettcEss directory) into : "/var/lib/gems/1.9.1/gems/gettc-1.10/dist/template/bin/" directory

  1. Change permissions of runner.sh, runner.rb files by running the following script (present at : Tools/ directory): bash Permissions.sh

  1. Now reset the gettc by gettc reset

  1. Now copy "create" file(Present at Tools/templates/ directory) into "/bin/" directory and change permissions so that you have right to execute. That is :

    sudo chmod 755 /bin/create
    

  1. Now copy "templates/" directory to your home folder. And make sure that you are the owner of this directory.

  1. Install BeautifulSoup module(Python module for parsing HTML) using sudo apt-get install python-BeautifulSoup

  1. To work, you need to have directory structure like this (In your home directory) : ~/ |-- Programming | |-- CodeChef | |-- CodeForces | |-- Spoj | `-- TopCoder

    That is : => If you need to do CodeChef Problem you need to work in : "~/Programming/CodeChef/" directory and file name should be : < ContestCode >_< ProblemCode >.cpp Example : MAY15_CHEFRP.cpp, COOK56_DIVGOLD.cpp, .....

    ----------------------- 
     => If you need to do CodeForces Problem you need to work in :
        "~/Programming/CodeForces/" directory and file name should be :
        < ContestCode >_< ProblemCode >.cpp
        Example : 546_B.cpp, 71_C, 538_B.cpp, .....
        
    -----------------------
     => If you need to do TopCoder Problem you need to work in :
        "~/Programming/TopCoder/" directory
    

  1. To create a new problem or to continue with the old one, type : create "ProblemName" in terminal. That is : => To do CodeChef problem, type : create < ContestCode >_< ProblemCode >.cpp
  •   Example : create MAY15_CHEFRP.cpp, create COOK56_DIVGOLD.cpp, .....
    
      -----------------------
     => To do CodeForces problem, type :
          create < ContestCode >_< ProblemCode >.cpp
          Example : create 71_C.cpp, create 546_B.cpp, .....
      
      -----------------------
     => To do TopCoder problem, type :
          create ProblemCode (You can find problem code in problem link), 
          for example I want to do PermutationDiv2 problem and it's link is : 
          http://community.topcoder.com/stat?c=problem_statement&pm=13679 So in this ProblemCode is 13679)
          example : create 13679, create 13035, .....	
    

  1. To Compile and run, just press "CTRL + z" in the sublime text. The code then compiles(The Compilation errors will be show if any) and runs. The output will be shown and corresponding verdict(TLE, ACC, WA, RTE) will be displayed. That's it.

NOTE : Demo : https://youtu.be/O1kWh8BIVLA?t=315

  1. If you have your own template for cpp, then put that in ~/templates/template.cpp file.
  2. This works only for cpp. This is one limitation.
  3. Report bugs at : achaitanyasai[AT]gmail[DOT]com

tools's People

Contributors

achaitanyasai avatar

Watchers

Naveen Reddy avatar

Forkers

rahulpamaar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.