- Create a parent folder for this repo.
mkdir template_trunk
- initialize it as a virtual environment.
virtualenv --python=python3 template_trunk
- navigate into parent
cd template_trunk
- clone the repo:
git clone git@github.com:ianliu-johnston/template.git
- navigate into repo:
cd template
- activate the virtual env:
source ../bin/activate
- link the activate script here.
ln -s ../bin/activate .
- install pip requirements:
pip install -r requirements.txt
- Setup pytest:
pip install -e .
- Setup precommit hooks
From (leetcode)[https://leetcode.com/problems/game-of-life/]
Demonstartes parallel programming and avoiding deadlock using semaphores. from (wikipedia/dining_philosophers_problem)[https://en.wikipedia.org/wiki/Dining_philosophers_problem]
Simple 2d matrix addition problem from (hackerrank.com)[https://www.hackerrank.com/challenges/diagonal-difference/problem]