Skip to content

Instantly share code, notes, and snippets.

View bvpav's full-sized avatar

bvpav

View GitHub Profile
@bvpav
bvpav / 1.make
Last active November 3, 2022 21:37
Примерни Makefile-ове
# това е коментар
# всичко тук отдолу се наричат рецепти
# на английски език, структурата на една рецепта:
target: prerequisite1 [prerequisite2 ...]
command1
[command2 ...]
#^^^ имай предвид, че тази индентация тук е задължителна - с нея разбира, че това е част от рецептата
# ЗАДЪЛЖИТЕЛНО използваш tab тук за индентация. интервали не работят.
@bvpav
bvpav / README.md
Last active November 3, 2022 21:26
Teenage Mutant Ninja Modules

The Scenery

There are 3 modules: m1.py, m2.py and main.py. We can only change the code of main.py and inside it we want to call a function from m1: m1.m1(). However, hidden deep inside the spaghetti codebase m1 is calling m2.m2() on the top level, so it gets executed every time we import m1. And we don't want that

The Problem