As configured in my dotfiles.
start new:
tmux
start new with session name:
| 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 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import math | |
| from PyQt4 import QtGui, QtCore | |
| def binomial(i, n): |
| #!/usr/bin/env python3 | |
| # -*- mode: python -*- | |
| # This program is free software. It comes without any warranty, to the extent | |
| # permitted by applicable law. You can redistribute it and/or modify it under | |
| # the terms of the Do What The Fuck You Want To Public License, Version 2, as | |
| # published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more | |
| # details. | |
| # Some useful resources: |