Sphere Online Judge
Sublime Text plugin to view Sphere Online Judge problem content from the GUI
Details
Installs
- Total 647
- Win 127
- Mac 482
- Linux 38
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sphere Online Judge Sublime Plugin
This is a Sublime Text plugin to view Sphere Online Judge problem contents directly in Sublime Text in a Textarea.
To make the plugin lightweight, the core functionality, that is parsing and scraping, is done in an online API hosted on Heroku. The source of the API is in the api branch.
Installation
Package Control
Search for Sphere Online Judge on Package Control and press enter. The plugin will be installed.
Zip File
Download the following zip: Sphere Online Judge Sublime Text and extract it to your Packages Directory (Click on Preferences - Browse packages)
Usage
You can click on the Tools Menu, then Sphere Online Judge-> Respective Options (there are two). The Command Pallete also has these options.
The first option, reads the first 5 lines of your current opened file for a problem id. The probem ID is used by Sphere Online Judge for submissions and serving content.
For example, the prime generator problem's URL is : http://www.spoj.com/problems/PRIME1/ and here the problem ID is PRIME1
You can declare the problem ID in your codefile as a docstring parameter.
In Python, you can do:
"""
@problem: PRIME1
"""
In Java, C, C++
/*
* @problem: PRIME1
*/
If the plugin can't find the ID, it will automatically prompt you for the ID.
The second option does the same, it just does not check the view for the ID and implicitly asks you for the ID.
Once you submit the ID, a textarea should pop up in 1-2 seconds (depending on your internet connection) with the problem. If you entered an invalid ID, you will recieve an error dialog.
To-Do
- API search integration (No problem ID required)
- Image Support
About
Created By Pradipta (geekpradd). Copyright 2015. MIT Licensed.