As configured in my dotfiles.
start new:
tmux
start new with session name:
/** | |
* Turns someCrazyName into Some Crazy Name | |
* Decent job of acroynyms: | |
* ABCAcryonym => ABC Acryoynm | |
* xmlHTTPRequest => Xml HTTP Request | |
*/ | |
String.prototype.unCamelCase = function(){ | |
return this | |
// insert a space between lower & upper | |
.replace(/([a-z])([A-Z])/g, '$1 $2') |
import util.continuations._ | |
import scalaz._ | |
import Scalaz._ | |
def reify[M[_] : Monad, A](body: => A @cps[M[A]]): M[A] = | |
reset{val result: A = body; implicitly[Monad[M]].pure[A](result)} | |
implicit def monad2reflect[M[_] : Monad, A](action: M[A]) = new { | |
def reflect[B]: A @cps[M[B]] = | |
shift{(k: A => M[B]) => implicitly[Monad[M]].bind(action, k)} |
dd if=/dev/dsp | ssh -C user@host dd of=/dev/dsp |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
There are two types (actually more, but for the problem at hand only these two are important):
flat strings are immutable arrays of characters
cons strings are pairs of strings, result of concatenation.
If you concat a and b you get a cons-string (a, b)
that represents result of concatenation. If you later concat d
to that you get another cons-string ((a, b), d)
.
Indexing into such a "tree-like" string is not O(1) so to make it faster V8 flattens the string when you index: copies all characters into a flat string.
I will maybe someday get around to dusting off my C and making these changes myself unless someone else does it first.
Imagine a long-running development branch periodically merges from master. The
git log --graph --all --topo-order
is not as simple as it could be, as of git version 1.7.10.4.
It doesn't seem like a big deal in this example, but when you're trying to follow the history trails in ASCII and you've got several different branches displayed at once, it gets difficult quickly.
% MIPS Assembly language definition for the LaTeX `listings' package | |
% | |
% The list of instructions and directives are those understood by the | |
% MARS MIPS Simulator [http://courses.missouristate.edu/KenVollmar/MARS/] | |
% | |
% Author: Eric Walkingshaw <eric@walkingshaw.net> | |
% | |
% This code is in the public domain. | |
% | |
% Here is an example style. I like it for slides, but you might want |