As configured in my dotfiles.
start new:
tmux
start new with session name:
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", | |
"selector": "text.html" | |
}, | |
{ |
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": "." | |
} | |
], | |
"ternjs": { | |
"libs": ["jquery"], |
au! | |
" | |
" pathogen settings | |
" | |
call pathogen#infect() | |
" | |
" always show the status line |
function proxy(){ | |
var proxyFactory = function(){ | |
var fnToCall = arguments.length === 2 ? arguments[0][arguments[1]] : arguments[0]; | |
var fn = function(){ | |
var args = [].slice.call(arguments); | |
fnToCall.apply(this, args); | |
}; | |
return fn; |
function proxy(){ | |
var proxyFactory = function(){ | |
//The wrapped function to call. | |
var fnToCall = arguments.length === 2 ? arguments[0][arguments[1]] : arguments[0]; | |
//A counter used to note how many times proxy has been called. | |
var xCalled = 0; |
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
# delay time | |
set -sg escape-time 1 | |
# 256 colors | |
set -g default-terminal "screen-256color" | |
# a mouse | |
set -g mode-mouse on | |
setw -g mouse-select-window on | |
setw -g mouse-select-pane on |
As configured in my dotfiles.
start new:
tmux
start new with session name:
(function(){ | |
"use strict"; | |
/** | |
* A factory for creating curry functions that | |
* are tied to the arrity of the function f. | |
*/ | |
function makeArrityBasedCurry(n) { | |
var curry = function(f){ | |
var args = [].slice.call(arguments, 1); |
(function(){ | |
"use strict"; | |
/** | |
* Creating a partial the hard way. | |
*/ | |
(function(){ | |
function add(x){ | |
return function(y){ |