"We’re in a strange state now where people who actually take textbook economics and simple arithmetic seriously are seen as dangerously radical and irresponsible, while people who believe in invisible bond vigilantes and confidence fairies, who claim to know what the market will want even though there’s no sign of that desire in current asset prices, are viewed as Very Serious."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- lisp/bindings.el 2011-04-19 13:21:26.000000000 +0200 | |
+++ lisp/bindings.el 2011-04-19 13:17:12.000000000 +0200 | |
@@ -334,9 +334,7 @@ | |
(propertize " " 'help-echo help-echo) | |
'mode-line-modes | |
`(which-func-mode ("" which-func-format ,spaces)) | |
- `(global-mode-string ("" global-mode-string ,spaces)) | |
- `(:eval (unless (display-graphic-p) | |
- ,(propertize "-%-" 'help-echo help-echo))))) | |
+ `(global-mode-string ("" global-mode-string ,spaces)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import csv | |
import sys | |
def main(args): | |
if not args: | |
return 'Usage: goodreads-export FILE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
import os | |
import sys | |
import traceback | |
__version__ = '1.0' |
Terminology for reasoning about consistency and availability trade-offs in distributed data systems.
Proposed by Martin Kleppmann in A Critique of the CAP Theorem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case $(uname) in | |
"Linux") S=$(xclip -o);; | |
"Darwin") S=$(pbpaste -prefer txt);; | |
esac | |
python -c " | |
import sys,re; | |
F = sys.argv[2].split('\n'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Usage # copy from browser "JIRA-205\nTicket title" | |
# $ jira2branch # echoes jira-205-ticket-title | |
# $ jira2branch team # echoes jira-205-team-ticket-title | |
OS=`uname` | |
function paste() { | |
if [ $OS == "Darwin" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias tmux-p0wn='tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-define(A(A), erl_syntax:atom(A)). | |
-define(I(I), erl_syntax:integer(I)). | |
-define(S(S), erl_syntax:string(S)). | |
-define(V(V), erl_syntax:variable(V)). | |
s_f(N, P, B) -> erl_syntax:function(N, erl_syntax:clause(P, [], B)). | |
s_c(M, F, A) -> [erl_syntax:application(?A(M), ?A(F), [A])]. | |
s_m(M) -> s_d(module, [?A(M)]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
PRODUCT="malcolm" | |
PRODUCT_LONG="most amazing list comprehender of log messages" | |
VERSION=1.0.0 | |
PORT=8080 | |
VERBOSE=false | |
_usage() { | |
echo "Usage: $(basename $0) [-V|--version] [-v|--verbose] <command> [<args>]" |