Giter VIP home page Giter VIP logo

solve-it's Introduction

Solve It

PRs Welcome

Solve It is a Sublime Text 3 plugin which is used to submit the solution of problems of Codeforces directly from the Sublime Text just by pressing ('CTRL + M') on (Windows or Linux) or ('Super + M') key on Mac OS.

What it does

Solve IT gets contest ID and problem ID from user and uses Selenium module of Python to submit currently active file of Sublime Text to Codeforces.

Set Up Instructions

Assuming Google Chrome and Python3 is installed in your system.

  • Clone Solve-It repository in your home directory.

  • Setup Selenium with ChromeDriver.

  • Copy urllib3 and selenium module of Python from Python library and paste it to sublime-text-3/Lib/Python3.3 folder.

  • In Linux head over to /home/{YOUR USERNAME}/.config/sublime-text-3/Packages/
    and in Windows C:/Users/{YOUR_USERNAME}/Appdata/Roaming/Sublime Text 3/Packages/
    and paste the cloned repository in this directory.

  • Now Setup Chrome so that Selenium may Connect to the existing Chrome Session.

    • First Make a directory in the desired location with name Google and make sure the path to chrome executable is added to the environment variable path.

    • Now Close all the instances of the Google Chrome.

    • In Linux run this command in your terminal
      google-chrome --remote-debugging-port=9222 --user-data-dir="path/to/Google"
      you can specify any port which is open but if you do then you need to change the port number in solve_it.py file.

    • This command will open the browser and all the information of your login in Chrome and Codeforces will be Stored there. So you don't need to login when you open this session again. You need to log in only for the first type.

    • Solve_It plugin will work only when the Chrome is opened by this command. So make sure you open Codeforces in this browser session.

  • You need to do the same thing in Windows. The only thing which change is this command
    chrome.exe --remote-debugging-port=9222 --user-data-dir="path/to/Google"

solve-it's People

Contributors

lowjack1 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.