Sphere Online Judge
Sublime Text plugin to view Sphere Online Judge problem content from the GUI
- Total 100
- Win 51
- OS X 25
- Linux 24
|Apr 19||Apr 18||Apr 17||Apr 16||Apr 15||Apr 14||Apr 13||Apr 12||Apr 11||Apr 10||Apr 9||Apr 8||Apr 7||Apr 6||Apr 5||Apr 4||Apr 3||Apr 2||Apr 1||Mar 31||Mar 30||Mar 29||Mar 28||Mar 27||Mar 26||Mar 25||Mar 24||Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6|
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.
Search for Sphere Online Judge on Package Control and press enter. The plugin will be installed.
Download the following zip: Sphere Online Judge Sublime Text and extract it to your Packages Directory (Click on Preferences - Browse packages)
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.
- API search integration (No problem ID required)
- Image Support
Created By Pradipta (geekpradd). Copyright 2015. MIT Licensed.