A tailored code editor for competitive programmers
And lots more...
You can find the respective executables/binaries in the release page. Check the Assets
for the required files. Installation guidelines for different operating systems is described below.
If you are using some variant of Linux you have two options:
snap
, if it supports. First download the .snap
package from the above mentioned link. Run the command below with package-name
as the name of downloaded file. You should then have the editor in your applications.$ sudo snap install 'package-name' --dangerous
AppImage
. Download the .AppImage
package and make it executable by right-clicking > properties
> permissions
> check the Allow executing file as program
and then you can run by DBLCLICK
it. You can do the same using command line as follows:$ chmod +x 'appimage-path'
$ ./appimage-path
If you are on windows you can download the .exe
setup from the link above and just run it. You may be prompted by Windows Smart Screen saying that its harmful. If so, click on More info
and a button Run Anyway
will appear and just proceed.
If you are on MAC then download the .dmg
or the .app
package from the link above. Extract the dmg
package to /Applications
or run the .app
bundle.
If you wish to build the project from source then check the contributing guide for initial setup and just run the electron:build
npm script. You may need windows-build-tools
if you are on windows.
The editor was designed with competitive programmers in mind. It introduces some tools and UI changes to usual editor so that it makes the whole experience simple and less annoying. Most of the annoying tasks are handled for you. The editor was created with the following workflow in mind.
Make sure you have the required language compiler/interpreter in your PATH
variable.
Make sure the file you open or create has proper extension of supported language.
NEW
or OPEN
file with the proper file extensions. Currently supports cpp
, c
, python
, java
.run
it.Custom IO mode
(when you intend to run single task) or switch to Testcase mode
(if you have multiple testcases to run).mode
you can just click on the RUN
button, which compiles and runs your code against all the testcases if you are in testcase mode
and the chips
will turn to some color depending on the execution status. You can click on the chips
to view the diff
or error
(if any). Alternatively, the Custom IO
area will get focused and you can type in the inputs and get the output stream.RERUN
button that runs the last compiled code..in
and corresponding .out
files from the selected directory.Contest-name
|---Problem-name-1
|---codefile.extension
|---testfile1.in
|---testfile1.out
Any suggestion to above workflow are encouraged.
If you wish to contribute to this repository then follow the steps below to build the project.
Make sure you have nodejs
and npm
installed. If you don't, follow the link.
Also if you are on windows install some linux terminal client like git-bash
. The below snippets should work fine
on linux
and macOS
.
$ git clone https://github.com/bitbeast18/sprint.git
$ cd sprint
$ npm install
electron
to build native node packages.$ npm install electron-rebuild
$ $(npm bin)/electron-rebuild
$ npm run electron:serve
Every time you work on the project make sure to pull
the updates from master
.
electron
fails to install then follow the steps below.$ cd sprint
$ ELECTRON_MIRROR="https://cdn.npm.taobao.org/dist/electron/" npm install [email protected] --verbose
pull-requests
are welcomed. If you find any bugs or glitches then please take some time to file an issue. Hope you enjoy the editor:)