Competitive Programming Source directory (cpsrc)

Revision en4, by RinRi, 2021-08-15 12:17:38

Cpsrc

Cpsrc is a tool to automate and enhance competitive programmer’s experience. It works well with neovim and C++. You can also modify it to use the editor and programming language of your choice.

Cpsrc offers several features:

  • Automatic template

  • Fast and easy compilation process (using Makefile and precompiled headers)

  • Colored input/output

Initially, I developed it for personal usage. But you are free to use it and contribute as well. You can find installation and usage instructions in the repositories hosted on Gitea and GitHub.

Thanks to _Na2Th for the article about precompiled headers.

The structure of Cpsrc:

  • Makefile makes it easier to compile your source files. It doesn't compile a file if it didn't change. Also Makefile provides bits/stdc++.h precompiling.

  • setup.sh creates your template and the starting position of the cursor.

  • create.sh script creates a source file with a template.

  • run.sh compiles (if needed) and runs your code with colored input/output.

Links:

Tags script, environment, vim, neovim, #c++, bash

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English RinRi 2021-08-15 12:17:38 0 (published)
en3 English RinRi 2021-08-15 12:15:42 505 Tiny change: 'D/cpsrc)\n\n[Gitea](' -> 'D/cpsrc)\n[Gitea]('
en2 English RinRi 2021-08-15 12:03:09 9 Tiny change: 'eatures:\n - Autom' -> 'eatures:\n\n - Autom'
en1 English RinRi 2021-08-15 12:01:11 934 Initial revision (saved to drafts)