Tired of searching how to start a project in a specified language? Welcome!
Go to file
2024-05-13 14:34:25 +02:00
c add -fsanitize=leak 2024-04-24 00:02:23 +02:00
cpp increase from 11 to 17 2024-04-20 14:56:15 +02:00
latex fix issue 2024-05-13 14:34:25 +02:00
ocaml Add VSCode directory 2023-09-19 16:11:36 +02:00
python Add Python 2023-09-19 16:30:22 +02:00
rust Add Rust 2023-09-19 16:17:33 +02:00
typescript Add Typescript 2023-09-07 17:09:24 +02:00
Makefile Add cleaner for ignored files 2024-04-20 15:28:48 +02:00
README.md link to projektor 2024-05-10 00:17:17 +02:00

Init projects!

C

Copy and paste c/ directory, and you should be good to go!

  • Remember to change executable's name and change std's target in the Makefile.
  • Run make to compile the program in release mode.
  • Run make debug to compile the program in debug mode.
  • Run make clean to clean artifacts.

C++

Copy and paste cpp/ directory, and you should be good to go!

  • Remember to change executable's name and change std's target in the Makefile.
  • Run make to compile the program in release mode.
  • Run make debug to compile the program in debug mode.
  • Run make clean to clean artifacts.

LaTeX

Book

This is for complex document.

Copy and paste latex/book directory, and you should be good to go!

  • Run make to compile the document.
  • Run make clean to clean artifacts.

It is by default configured to output book.pdf.

Document

This is for simple document.

Copy and paste latex/document directory, and you should be good to go!

  • Run make to compile the document.
  • Run make clean to clean artifacts.

It is by default configured to output document.pdf.

Examen

This is for simple test.

Copy and paste latex/exam directory, and you should be good to go!

  • Run make to compile the document.
  • Run make clean to clean artifacts.

It is by default configured to output test.pdf.

Presentation

This is for presentations.

Copy and paste latex/presentation directory, and you should be good to go!

  • Run make updatepackage to download/update dependencie (projektor).
  • Run make to compile the document.
  • Run make clean to clean artifacts.

It is by default configured to build slides.tex and output slides.pdf. There is a more advanced file with more examples named slides_advanced.tex.

OCaml

Copy and paste ocaml/ directory, and you should be good to go!

  • Remember to change values in the dune-project.
  • Run dune exec example to run the program.
  • Run dune runtest to run tests.

Example of custom repository source:

(source
 (uri https://dev.example.com/project.git))

It's recommended to have this one as a "working example", and still create new projects via dune init proj.

Python

Copy and paste python/ directory, and you should be good to go!

  • Run python main.py to start the program.

It's recommended to use virtual environnement:

  • virtualenv . → create the virtual env in the current folder
  • activate → activate the virtual env
  • Now, it won't affect your other projects

Rust

Copy and paste rust/ directory, and you should be good to go!

  • Remember to change values in the Cargo.toml.
  • Run cargo run to run the program.

It's recommended to have this one as a "working example", and still create new projects via cargo new <directory>.

Typescript

Copy and paste typescript/ directory, and you should be good to go!

  • Remember to change values in the package.json.
  • Then, to install all the dependencies, run npm install.
  • To check if there is any new update for dependencies, run npm outdated, makes changes accordingly to run the latest version, you may need to run npm update to apply the updates after the modification of package.json.
  • Run npm run main to start the program.

Contribution? Yes, please!