This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import re | |
path = os.path.dirname(sys.argv[1]) | |
path = "." if path == "" else path | |
episode = os.path.splitext(os.path.basename(sys.argv[1]))[0] | |
with open(f"{path}/{episode}.md") as f: | |
content = f.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# uses @bobturneruk's extract_code.py: https://gist.github.com/bobturneruk/dfccd3d6ce5af7545c4a1159ce4724e8 | |
for file in $(ls _episodes/*.md); do | |
echo "Checking Python code in ${file}" | |
python extract_code.py $file > /dev/null | |
python _episodes/$(basename -s .md $file).py > /dev/null | |
rm _episodes/$(basename -s .md $file).py | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************************** | |
* | |
* lb-walking.c | |
* | |
* Copyright (c) 2009-2014 Ulf D. Schiller <[email protected]> | |
* All rights reserved. | |
* | |
* Please cite the following publications when using this code: | |
* | |
* U. D. Schiller |