Skip to content

Instantly share code, notes, and snippets.

View postpostmodern's full-sized avatar

Jason T Johnson postpostmodern

View GitHub Profile
@postpostmodern
postpostmodern / track_event.js
Created May 16, 2013 20:05
General event tracking for Google Universal Analytics
$('body').on('click', 'a, img, button', function(e) {
var $el = $(e.target);
if($el.data('event-count')) {
$el.data('event-count', ($el.data('event-count') + 1));
} else {
$el.data('event-count', 1);
}
var category = e.target.nodeName;
@postpostmodern
postpostmodern / 0_reuse_code.js
Created December 16, 2013 20:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@postpostmodern
postpostmodern / _colors.scss
Created June 15, 2016 21:52
Color Guide: Visualize all of the colors for your site.
$colors: (
white: white,
gray1: rgb(238, 240, 242),
gray2: rgb(187, 196, 201),
gray3: rgb(162, 168, 172),
gray4: rgb(110, 116, 120),
accent: red
);
@function c($key) {