“… and I shall not stop until every single one of them is dead — finger lickin’ dead.”
J.K. Rowling: Harry Potter and the Deathly Hallows
So, for a bit, I kept messing up nested list comprehensions when I tried to use them. Since I’m usually writing in Python to Get All The Things Done, my usual response is, “Oh, I should figure out what I’m doing wrong sometime, but I’ll just do a while loop or use reduce or whatever for now.”
But the other day, I happened on a nice concrete example that clarified things for me, so I figured, maybe I should link it, and share another such example.
(via ushishir)
Math in nature is my favorite!
Ammonites are awesome, as all right-thinking people know.
Major update:
- Code overhaul. Userscript no longer depends on jQuery. Hopefully this doesn’t break compatibility…
- You should notice some sort of speed increase b/c it’s not loading anything external.
As always, the userscript is here.
(Btw, I might have broken manually specified sidebars….