Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
# 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 |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
function beget(parent, child) { | |
// Add code here to make test() return true. | |
} | |
function test(){ | |
var c; | |
function Parent() { | |
throw 'exception'; | |
} |
/* | |
Fill in the body of the `debounce` function, such that running | |
the following code will output "fn was called with 10!" only once. | |
*/ | |
(function () { | |
var debounce, fn, i; | |
debounce = function (func, wait) { | |
// ... | |
}; |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l
set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W
.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\
.
Here's how it should work: