Skip to content

Instantly share code, notes, and snippets.

View cocoalabs's full-sized avatar

Lemont Washington cocoalabs

View GitHub Profile
void main() {
var a = [1,2,3,4,5,7,8,9];
var p = a.where((aNumber) => aNumber % 2 == 0 );
print("$p");
}
@cocoalabs
cocoalabs / gist:2fb7dc2199b0d4bf160364b8e557eb66
Created August 15, 2016 21:50
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"