Skip to content

Instantly share code, notes, and snippets.

View jihokoo's full-sized avatar

Tom Koo jihokoo

  • New York, New York
View GitHub Profile
@jihokoo
jihokoo / NERDTree.mkd
Last active August 29, 2015 14:27 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@jihokoo
jihokoo / tmux-cheatsheet.markdown
Last active August 29, 2015 14:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
var reversedLinkedList;
var reverse = function(list){
if(list.next){
current = reverse(list.next, 1);
current.next = list;
list.next = null;
if(arguments.length > 1){
return list
}
} else{
(function challenge (url){
$.getJSON(url || 'http://letsrevolutionizetesting.com/challenge', function(data){
data.follow ? challenge(data.follow) : console.log('this is it', data);
})
})()
IIFE (Immediately Invoked Function Expression)