-
The repository is publicly available. If you want to be able to commit contact me.
-
If you use this repo, give a star ⭐
-
We work on the branch toCode. We clean code there. Every once in a while we merge it into master.
-
If you would like to improve code that was written by someone else, use comments or review in pull request.
-
The code and commit messages can be written both in English and in Polish. We just try to use the same language in one file.
-
Rules can be changed.
Clone repository:
git clone https://github.com/tgargula/AGH.git
Download current repository from a branch:
git pull origin toCode
Change branch or add it if it doesn't exist:
git checkout toCode
Check git status:
git status
Add to staging area:
git add <filename>
Commit with message:
git commit -m "Commit message"
Update branch on GitHub:
git push origin toCode
PS. I have changed username recently, so if old settings do not work anymore, go to your local repository and type:
git remote set-url origin https://github.com/tgargula/AGH.git
More commands you could find eg. on this page.
It completely does not matter, which software you use, but here are some recommendations:
- VS Code – C/C++, Python, other
- Jupyter Notebook – Python, C/C++, R, Julia, other
- Vim – Python, bash, other
- JetBrains:
To compile C file with all warnings, use:
gcc -std=c11 -O2 -Wall -Wextra -Wpedantic -Werror=implicit-function-declaration -ftrapv -ggdb3 -o [filenameWithoutExtention].out [filename] -lm
To compile C++ file with all warnings, use:
g++ -std=c++11 -O2 -Wall -Wextra -Wpedantic -ftrapv -ggdb3 -o [filenameWithoutExtention].out [filename] -lm
To check possible memory leaks, run:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes [program].out
You can also use compile and memcheck scripts located in: ./archive/Sem1/UNIX or write your own script