(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
;;- -*-scheme-*- | |
;;; rabbit compiler | |
;;- This is the source code to the RABBIT Scheme compiler, by Guy Steele, | |
;;- taken from the Indiana Scheme repository and annotated by me, Darius | |
;;- Bacon. I converted it from all-uppercase to all-lowercase and | |
;;- reindented it with Emacs for better readability. I've added the | |
;;- comments starting with either ;- or ;*. Other comments are by Steele. | |
;;- The ;- comments were things I'd figured out, while ;* denoted things | |
;;- for me to look into. (Sometimes I didn't bother to type in the answer |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
echo "update and upgrade apt" | |
sudo apt-get update | |
echo "y" | sudo apt-get upgrade | |
echo "force audio out to analog" | |
# amixer cset numid=3 N where the N parameter means the following: 0=auto, 1=analog, 2=hdmi | |
sudo amixer cset numid=3 1 | |
echo "set volume to maximum" | |
sudo amixer cset numid=1 -- 100% |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs