(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
/* | |
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined | |
* in FIPS 180-1 | |
* Version 2.2-alpha Copyright Paul Johnston 2000 - 2002. | |
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | |
* Distributed under the BSD License | |
* See http://pajhome.org.uk/crypt/md5 for details. | |
*/ | |
/* |
/** | |
* DERIVING THE Y COMBINATOR IN 7 EASY STEPS | |
* | |
* Ionut G. Stan | ionut.g.stan@gmail.com | http://igstan.ro | http://twitter.com/igstan | |
* | |
* | |
* The Y combinator is a method of implementing recursion in a programming | |
* language that does not support it natively (actually, it's used more for | |
* exercising programming brains). The requirement is the language to support | |
* anonymous functions. |
### | |
# Custom tmux configuration cobbled together from google and trial & error | |
# by Eric Marden (xentek.net), heavily modified by David Rogers (@al-the-x). | |
## | |
# set the command prefix to match gnuscreen (i.e. CTRL+a) | |
set-option -g prefix C-a | |
# use the NEW prefix key to "send-prefix" instead of the default | |
unbind-key C-b; bind-key C-a send-prefix |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
var data = { image: "image.jpg", text: "text..." }; | |
var popup = webkitNotifications.createHTMLNotification( | |
'notification.html#' + encodeURIComponent(JSON.stringify(data)) ); |
// Built with IMPACT - impactjs.org | |
(function (window) { | |
"use strict"; | |
Number.prototype.map = function (istart, istop, ostart, ostop) { | |
return ostart + (ostop - ostart) * ((this - istart) / (istop - istart)); | |
}; | |
Number.prototype.limit = function (min, max) { | |
return Math.min(max, Math.max(min, this)); | |
}; | |
Number.prototype.round = function (precision) { |
sublime.log_commands(True) |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
// load postgres driver | |
_ "github.com/lib/pq" | |
) |