Skip to content

Instantly share code, notes, and snippets.

View olipinski's full-sized avatar
💭
🇪🇺

Olaf Lipinski olipinski

💭
🇪🇺
View GitHub Profile
@olipinski
olipinski / fixdocstart.py
Created July 8, 2025 12:22
Fix all YAML doc starts + rename .yml to .yaml
import os
import subprocess
from pathlib import Path
def insertDocumentStart(path):
p = Path(path)
contents = p.read_text(encoding='utf8')
contents = '---\n' + contents
p.write_text(contents, encoding='utf8')
return contents
@olipinski
olipinski / thesis_analysis.ipynb
Last active April 13, 2025 19:30
Code for my thesis analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal