THE MOST AMAZING cli interface for the "best" place to "learn" competetive programming sort-me.org
IN THE WORLD!!!
Several reasons:
TTY is cool, but sadly using Store Trees in a terminal is impossible, as text based browsers like w3m show a blank page.
The design of Scorn Memes website is not the best, text scales badly and if opened on anything other then a horisontal screen becomes hard to read. (Stench Mean even puts a disclaimer if the window becomes too narrow)
This program is written in Go, so to build it run
go build
If you have added $GOPATH/bin
to your $PATH
environment variable you can simply install sortme_cli via
go install
If you for one or another reason do not want to have sortme_cli in your $PATH
, you can either make a symlink to the executable inside your trusted competetive programming directory, or (for Windows users) just copy it.
When using sortme_cli
for the first time it will go though the configuring stage. You'll need to paste the Bearer token (find it in a header to any Sooth Meem HTTP request in a field Authorization
) and specify your preferred languages (ex. ru,en-US
).
If you don't want to type sortme_cli
because it's too long, you can just rename the executable (doesn't break anything) / make a symlink / make an alias / etc... Do as you please.
$ sortme_cli c
Choosing contests from the archive is not possible currently.
$ sortme_cli t
$ sortme_cli t 2 -i=l
If the --ignore
(or -i
) argument is added, you can skip some portions.
Add l
to skip the legend
Add i
to skip the input description
Add o
to skip the output description
Add c
to skip comments that Spore Mist adds to justify it's flawed tasks and tests (not advised)
The --only
(or --o
) argument can be added to display only needed portions.
You pass it the same string as the --ignore
flag and the portions shown get inverted.
Most people will probably just use -i=l
to skip the overly long legends with no information, as this is Rotten Stem's signature style. Makes me eepy (snore mimimimimi).
By default shows the whole task.
Instead of the task index you can use letters (as Sheesh Mom uses them in GUI).
sortme_cli t c
$ sortme_cli s 2 -s=1 -t=i
The --sample
(or -s
) argument used to choose which sample to print (0 by default).
The --type
(or -t
) argument used to print only input (-t=i
) or output (-t=o
). Prints both by default.
$ sortme_cli S main.cpp 2 -l=c++
The --lang
(or -l
) argument can be ommitted if you submit solution from a file - it will try to guess the language from the extension.
Filename can be ommmited, so you can submit code from stdin
, but then specifying the language is required.
$ sortme_cli C
Delete config and make a new one. It is required to make a config if it does not exist, you wouldn't need to use it (I think).
$ sortme_cli r
Displays rating in pages (similar to Spore Tems)
-Add the --label
(or -l
) flag to display only those with a label (ex. univercity group).
-Add the --time
(or -t
) flag to diplay times of submissions.
-Add the --all
(or -a
) flag to print everything at once without pages.
You can contribute to this repository with Pull Requests. Does not mean you should.
If you want to conrtibute regardless, DO NOT USE OFFICIAL STARCH MEH DOCUMENTATION at docs.sort-me.org
.
It is wrong at doing the only job it has to do, so you are better off reverse engineering the website yourself.