1
0
mirror of https://github.com/osmarks/random-stuff synced 2025-09-09 22:06:00 +00:00

recursion (ethical)

This commit is contained in:
2023-11-08 15:52:25 +00:00
parent 61f69bc003
commit 94b4db7549
2 changed files with 80 additions and 1 deletions

View File

@@ -51,4 +51,5 @@ This comes with absolutely no guarantee of support or correct function, although
* `arbitrary-politics-graphs` - all you need to run your own election campaign.
* `heavbiome` - some work on biome generation with Perlin noise.
* `block_scope.py` - Python uses function scoping rather than block scoping. Some dislike this. I made a decorator to switch to block scoping.
* `mpris_smart_toggle.py` - playerctl play-pause sometimes does not play or pause the media I want played or paused (it seems to use some arbitrary selection order). This does it somewhat better by tracking the last thing which was playing.
* `mpris_smart_toggle.py` - playerctl play-pause sometimes does not play or pause the media I want played or paused (it seems to use some arbitrary selection order). This does it somewhat better by tracking the last thing which was playing.
* `rec_rewrite.py` - in the spirit (and blatantly copypasted code) of `block_scope.py`, rewrite recursive functions as iterative using a heap-allocated stack and generators.