Skip to content

Instantly share code, notes, and snippets.

View shhyou's full-sized avatar
💭
Alive

shuhung shhyou

💭
Alive
View GitHub Profile

tmux cheatsheet

This cheatsheet is forked from henrik/tmux_cheatsheet.markdown.

As configured in my dotfiles.

Remember to start the shell with utf-8 supprt, by export LANG=utf-8 or similarly LC_ALL, LC_CTYPE.

start new:

@shhyou
shhyou / test.cpp
Last active November 6, 2015 01:55 — forked from b4284/test.c
struct S { int i; };
S s;
S& func1() { return s; }
S func2() { return s; }
int main() {
func1() = {5};
func2() = {5};
return 0;
@shhyou
shhyou / Warning.hs
Last active August 29, 2015 14:13 — forked from favonia/Warning.hs
-- released under CC0 by favonia
import System.Environment
fix f = let lfp = f lfp in lfp
quotes :: [String -> String]
quotes = map q $ cycle [("「", "」"), ("『", "』")]
where q (l,r) str = l ++ str ++ r