Skip to content

Instantly share code, notes, and snippets.

View rjv's full-sized avatar

Roger Vandawalker rjv

View GitHub Profile
@rjv
rjv / gist:4741431
Last active December 12, 2015 08:08
Simple Google Analytics event tracking wrapper
var track = function(category, action, label) {
if (window.ga) {
ga('send', 'event', category, action, label);
}
else if (window._gaq) {
window._gaq.push(["_trackEvent", category, action, label]);
}
};
{
"files":
{
"jquery": "http://code.jquery.com/jquery.min.js",
"jquery-ui-effects": "https://raw.github.com/jquery/jquery-ui/master/ui/jquery.effects.core.js",
"jquery-mobile-vmouse": "https://raw.github.com/jquery/jquery-mobile/master/js/jquery.mobile.vmouse.js",
"jquery-flexslider": "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js",
"jquery-mediaelement": "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js",
"jquery-url": "https://raw.github.com/allmarkedup/jQuery-URL-Parser/master/jquery.url.js",
"jquery-dotimeout": "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js",
@rjv
rjv / gist:4485823
Last active December 10, 2015 20:08
Bash Prompt
# PS1='\e[32m\t \e[33m\w \e[31m\$ \e[0m'
PS1="[\u@\[\e[0;31m\]\h\[\e[1;39m\] \W]: "