Skip to content

Instantly share code, notes, and snippets.

View wtakuo's full-sized avatar

Takuo Watanabe wtakuo

View GitHub Profile
@darius
darius / RABBIT.scm
Last active September 23, 2024 19:44
;;- -*-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
@staltz
staltz / introrx.md
Last active September 13, 2025 12:14
The introduction to Reactive Programming you've been missing
@yusuke
yusuke / gist:5429049
Last active December 16, 2015 11:39
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%
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active September 6, 2025 22:55
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/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
@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

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