September 21, 2012
Neville Li & David Xia
To me vi is zen. To use vi is to practice zen. Every command is a koan. Profound to the user, unintelligible to the uninitiated. You discover truth every time you use it. — Satish Reddy
| #!/bin/bash | |
| # | |
| # Build and iPhone Simulator Helper Script | |
| # David Xia 2013 | |
| # | |
| # WARN: - if your .xcodeproj name is not the same as your .app name, | |
| # this won't work without modifications | |
| # - you must run this script in where your .xcodeproj file is | |
| WORKSPACE=$1 |
| # Default Theme | |
| if patched_font_in_use; then | |
| TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="⮂" | |
| TMUX_POWERLINE_SEPARATOR_LEFT_THIN="⮃" | |
| TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="⮀" | |
| TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="⮁" | |
| else | |
| TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="◀" | |
| TMUX_POWERLINE_SEPARATOR_LEFT_THIN="❮" |
| #/bin/bash | |
| # Debian package dependencies: | |
| # build-essential - for GCC, GNU Make, etc. | |
| # curl - obviously | |
| # exuberant-ctags - for Vim Tagbar | |
| # git - obviously | |
| # tmux - obviously | |
| # vim-nox - Vim with python and ruby support | |
| # zsh - obviously |
| 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 | |
| Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
| Read 4K randomly from SSD 150,000 ns 0.15 ms | |
| Read 1 MB sequentially from memory 250,000 ns 0.25 ms | |
| Round trip within same datacenter 500,000 ns 0.5 ms |