Skip to content

Instantly share code, notes, and snippets.

View teyou's full-sized avatar

Rudy teyou

  • Singapore
View GitHub Profile
@teyou
teyou / .tmux.conf
Created November 6, 2017 02:14
My Tmux Mac OSX (v 2.1 above)
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
# Install plugin -> https://github.com/tmux-plugins/tpm
# then follow instuction to install after setting this file
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}