Skip to content

Instantly share code, notes, and snippets.

@clhenrick
clhenrick / README.md
Last active July 15, 2026 03:15
PostgreSQL & PostGIS cheatsheet (a work in progress)
@abkfenris
abkfenris / Dockerfile
Created July 25, 2014 23:45
ipython with matplotlib dockerfile
FROM ipython/notebook
MAINTAINER Alex Kerney <abk@mac.com>
RUN apt-get install -y -q python-numpy python-scipy python-matplotlib python-pandas python-sympy python-nose
@sloria
sloria / bobp-python.md
Last active August 5, 2026 11:38
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@jboner
jboner / latency.txt
Last active August 9, 2026 15:38
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD