As configured in my dotfiles.
start new:
tmux
start new with session name:
| // Sample custom iterator. | |
| // By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558) | |
| // From: http://www.dreamincode.net/forums/index.php?showtopic=58468 | |
| #include <iostream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <iterator> | |
| #include <cassert> |
| " File: .vim/syntax/rdoc.vim | |
| " RDoc inline links: protocol optional user:pass@ sub/domain .com, .co.uk, etc optional port path/querystring/hash fragment | |
| " ------------ _____________________ --------------------------- ________________________ ----------------- __ | |
| syntax match rdocInlineURL /https\?:\/\/\(\w\+\(:\w\+\)\?@\)\?\([A-Za-z][-_0-9A-Za-z]*\.\)\{1,}\(\w\{2,}\.\?\)\{1,}\(:[0-9]\{1,5}\)\?\S*/ | |
| HtmlHiLink rdocInlineURL htmlLink |
| from collections import defaultdict | |
| class BadMatch(NameError): | |
| """Exception when your args don't match a pattern""" | |
| pass | |
| class Any(object): | |
| """ | |
| >>> 'wutup' == Any() | |
| True |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| SET FILES= | |
| FOR %%A IN (%1\*.gz) DO ( SET FILES=!FILES! %%A ) | |
| echo !FILES! |
| " Usage: | |
| " Copy this file to your ~/.vim/autoload directory. | |
| " :edit oldfile | |
| " :new newfile | |
| " :call wdiff#highlight(2, 1) " wdiff#highlight(winnr1, winnr2) | |
| let s:save_cpo = &cpo | |
| set cpo&vim | |
| function wdiff#highlight(Awinnr, Bwinnr) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
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
| // Two-dimensional array with dimensions determined at runtime | |
| // | |
| // Written in 2012 by Martinho Fernandes | |
| // | |
| // To the extent possible under law, the author(s) have dedicated all copyright and related | |
| // and neighboring rights to this software to the public domain worldwide. This software is | |
| // distributed without any warranty. | |
| // | |
| // You should have received a copy of the CC0 Public Domain Dedication along with this software. | |
| // If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. |