2023-09-19 11:54:28 +02:00
|
|
|
# Init projects! <!-- omit in toc -->
|
|
|
|
|
|
|
|
- [C](#c)
|
|
|
|
- [C++](#c-1)
|
2023-10-03 12:08:51 +02:00
|
|
|
- [LaTeX](#latex)
|
2024-05-10 00:14:25 +02:00
|
|
|
- [Book](#book)
|
2023-10-03 12:08:51 +02:00
|
|
|
- [Document](#document)
|
2024-05-10 00:14:25 +02:00
|
|
|
- [Examen](#examen)
|
2023-10-03 12:08:51 +02:00
|
|
|
- [Presentation](#presentation)
|
2023-09-19 16:07:18 +02:00
|
|
|
- [OCaml](#ocaml)
|
2024-05-10 00:15:30 +02:00
|
|
|
- [Python](#python)
|
2023-09-19 16:17:33 +02:00
|
|
|
- [Rust](#rust)
|
2023-09-19 11:54:28 +02:00
|
|
|
- [Typescript](#typescript)
|
2023-09-07 17:09:24 +02:00
|
|
|
|
2023-09-19 11:51:53 +02:00
|
|
|
## C
|
|
|
|
|
|
|
|
Copy and paste [`c/`](./c/) directory, and you should be good to go!
|
|
|
|
|
2023-09-19 15:42:14 +02:00
|
|
|
- Remember to change executable's name and change std's target in
|
|
|
|
the [`Makefile`](./c/Makefile).
|
2024-04-03 15:38:54 +02:00
|
|
|
- **Run `make` to compile the program in release mode.**
|
|
|
|
- **Run `make debug` to compile the program in debug mode.**
|
2023-09-19 11:51:53 +02:00
|
|
|
- **Run `make clean` to clean artifacts.**
|
|
|
|
|
|
|
|
## C++
|
|
|
|
|
|
|
|
Copy and paste [`cpp/`](./cpp/) directory, and you should be good to go!
|
|
|
|
|
2023-09-19 15:42:14 +02:00
|
|
|
- Remember to change executable's name and change std's target in
|
|
|
|
the [`Makefile`](./cpp/Makefile).
|
2024-04-03 15:38:54 +02:00
|
|
|
- **Run `make` to compile the program in release mode.**
|
|
|
|
- **Run `make debug` to compile the program in debug mode.**
|
2023-09-19 11:51:53 +02:00
|
|
|
- **Run `make clean` to clean artifacts.**
|
|
|
|
|
2023-10-03 12:08:51 +02:00
|
|
|
## LaTeX
|
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
### Book
|
|
|
|
|
|
|
|
This is for complex document.
|
|
|
|
|
|
|
|
Copy and paste [`latex/book`](./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`.
|
|
|
|
|
2023-10-03 12:08:51 +02:00
|
|
|
### Document
|
|
|
|
|
2024-04-18 18:13:43 +02:00
|
|
|
This is for simple document.
|
|
|
|
|
2023-10-03 12:08:51 +02:00
|
|
|
Copy and paste [`latex/document`](./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`.
|
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
### Examen
|
2023-10-03 12:08:51 +02:00
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
This is for simple test.
|
2024-04-18 18:13:43 +02:00
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
Copy and paste [`latex/exam`](./latex/exam/) directory,
|
2023-10-03 12:08:51 +02:00
|
|
|
and you should be good to go!
|
|
|
|
|
|
|
|
- **Run `make` to compile the document.**
|
|
|
|
- **Run `make clean` to clean artifacts.**
|
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
> It is by default configured to output `test.pdf`.
|
2023-10-03 12:08:51 +02:00
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
### Presentation
|
2024-04-18 18:13:43 +02:00
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
This is for presentations.
|
2024-04-18 18:13:43 +02:00
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
Copy and paste [`latex/presentation`](./latex/presentation/) directory,
|
2024-04-18 18:13:43 +02:00
|
|
|
and you should be good to go!
|
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
- **Run `make updatepackage` to download/update dependencie (projektor).**
|
2024-04-18 18:13:43 +02:00
|
|
|
- **Run `make` to compile the document.**
|
|
|
|
- **Run `make clean` to clean artifacts.**
|
|
|
|
|
2024-05-10 00:14:25 +02:00
|
|
|
> 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`.
|
2024-04-18 18:13:43 +02:00
|
|
|
|
2023-09-19 16:07:18 +02:00
|
|
|
## OCaml
|
|
|
|
|
|
|
|
Copy and paste [`ocaml/`](./ocaml/) directory, and you should be good to go!
|
|
|
|
|
|
|
|
- Remember to change values in the [`dune-project`](./ocaml/dune-project).
|
|
|
|
- **Run `dune exec example` to run the program.**
|
|
|
|
- **Run `dune runtest` to run tests.**
|
|
|
|
|
|
|
|
> Example of custom repository source:
|
|
|
|
>
|
|
|
|
> ```dune
|
|
|
|
> (source
|
|
|
|
> (uri https://dev.example.com/project.git))
|
|
|
|
> ```
|
|
|
|
|
2024-02-01 15:35:08 +01:00
|
|
|
> It's recommended to have this one as a "working example", and still create
|
|
|
|
> new projects via `dune init proj`.
|
|
|
|
|
2024-05-10 00:15:30 +02:00
|
|
|
## Python
|
|
|
|
|
|
|
|
Copy and paste [`python/`](./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
|
|
|
|
|
2023-09-19 16:17:33 +02:00
|
|
|
## Rust
|
|
|
|
|
|
|
|
Copy and paste [`rust/`](./rust/) directory, and you should be good to go!
|
|
|
|
|
|
|
|
- Remember to change values in the [`Cargo.toml`](./rust/Cargo.toml).
|
|
|
|
- **Run `cargo run` to run the program.**
|
|
|
|
|
2024-02-01 15:35:08 +01:00
|
|
|
> It's recommended to have this one as a "working example", and still create
|
|
|
|
> new projects via `cargo new <directory>`.
|
|
|
|
|
2023-09-07 17:09:24 +02:00
|
|
|
## Typescript
|
|
|
|
|
2023-09-19 11:51:53 +02:00
|
|
|
Copy and paste [`typescript/`](./typescript/) directory, and you should be good to go!
|
2023-09-07 17:09:24 +02:00
|
|
|
|
|
|
|
- Remember to change values in the [`package.json`](./typescript/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`](./typescript/package.json).
|
|
|
|
- **Run `npm run main` to start the program.**
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Contribution? Yes, please!
|