Code
Here you'll find the source code used in the hands-on projects of How Computers Really Work. Below you'll find direct links to the source files, meant for downloading rather than viewing in your browser.
You can download individual source files to your Raspberry Pi using the wget utility, like so:
$ wget https://www.howcomputersreallywork.com/code/vars.c
Or download and extract all the code at once:
$ wget https://www.howcomputersreallywork.com/code/all.tar.gz -O - | tar -xz
Chapter 8
- fac.s (Project #12)
Chapter 9
- vars.c (Project #14)
- vartype.py (Project #15)
- vars-v2.c (Project #16, modified vars.c)
- guess.py (Project #17)
- bank.py (Project #18)
- fac2.c (Project #19)
Chapter 10
- threader.c (Project #21)
- newfile.c (Project #23)
- newfile.py (Project #23)
- random.c (Project #25)
Chapter 12
- web/index.html (Project #38)
- web/style.css (Project #39)
- web/index-v2.html (Project #39, modified index.html)
- web/cat.js (Project #40)
- web/index-v3.html (Project #40, modified index.html)
Chapter 13
- gpiotest.py (Project #41)
- vending.py (Project #41)
- vending-v2.py (Project #41, modified vending.py)