THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
let mapleader="," | |
let $VIM = expand('~/.vim/') | |
let $BUNDLES = expand($VIM . 'bundle/') | |
let $NEOBUNDLE = expand($BUNDLES . 'neobundle.vim') | |
let $TMP = expand($VIM . 'tmp/') | |
nnore<leader>Ve :tabedit $MYVIMRC<CR> | |
nnore <leader>. :source %<CR> | |
if has('vim_starting') |
; Comments start with semicolons. | |
; Clojure is written in "forms", which are just | |
; lists of things inside parentheses, separated by whitespace. | |
; | |
; The clojure reader assumes that the first thing is a | |
; function or macro to call, and the rest are arguments. | |
; | |
; Here's a function that sets the current namespace: | |
(ns test) |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
# Update the status bar by fetching an environment variable set earlier by a shell script. | |
# Requires Thomas Adam's hook patch for tmux | |
# https://github.com/ThomasAdam/tmux/tree/ta/hooks | |
set-hook -g -n 'after-select-window' 'run "tmux set -q status-left \"`tmux show -environment TMUX_STATUS_#I | cut -c 15-`\""' | |
set-hook -g -n 'after-kill-window' 'run "tmux set -q status-left \"`tmux show -environment TMUX_STATUS_#I | cut -c 15-`\""' |
var empty_list = function(selector) { | |
return selector(undefined, undefined, true); | |
}; | |
var prepend = function(el, list) { | |
return function(selector) { | |
return selector(el, list, false); | |
}; | |
}; | |
var head = function(list) { |
-module(bench). | |
-export([run_suite/3, run/1]). | |
run_suite(Name, Passes, Messages) -> | |
Results = run_suite1(Passes, Messages, []), | |
Avg = lists:sum(Results) / Passes, | |
StdDev = math:sqrt(lists:sum([math:pow(X - Avg, 2) || X <- Results]) / Passes), | |
Summary = [{avg, Avg}, {stddev, StdDev}, {min, lists:min(Results)}, | |
{max, lists:max(Results)}], |
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
%% * slurp in terms using inlined version of kernels file:consult/1 | |
%% * convert to abstract syntax tree | |
%% * annotate all tuples | |
%% * pretty print using a hook to prefix the annotated nodes with newline | |
main([]) -> | |
io:format("%% -*-erlang-*-~n"), |
From d98e6c32d44e00f954c3912b08c6ebf48d55729c Mon Sep 17 00:00:00 2001 | |
From: Fred Hebert <[email protected]> | |
Date: Thu, 20 Dec 2012 08:41:33 -0500 | |
Subject: [PATCH] Add search to Erlang shell's history | |
Search mode can be entered by pressing ctrl-r. Enter terms and press | |
ctrl-r again to search backwards, or ctrl-s to then search forward (if | |
you terminal doesn't eat up that one). Press enter to execute the line, | |
or use tab, arrow keys, or other control sequences (^D, ^K, etc.) to | |
exit search mode while remaining on the last found line. |