A list of code examples, notes, and slides used in class. This page generally will be added to shortly before or shortly after the class (or sometime both).
docker imagescontainer ls
which actually means I used up to get to docker images
and then backspace to replace it with docker container ls
. Sorry, I didn’t realize it was set to record in that way until after class was over. The video has the correct terminal commands.Dockerfile
dice.py
race.py
demo threading with a race condition (in particular, a data race).
packer.py
demo threading with a race condition (involving a producer and consumer).
ui_thread.py
which we’ll complete in class to use a user interface threading pattern.
classes.py
with classes and type annotations.comprehensions.py
with list, set, and dict comprehensions, both helpful and confusing.decorators.py
with first-class functions, decorators, and the Collatz conjecture.async.py
with async
, await
, and a few simple asyncio functions.