Skip to content

Instantly share code, notes, and snippets.

View derekbtw's full-sized avatar
🌎
Internet explorer

Derek Bytheway derekbtw

🌎
Internet explorer
View GitHub Profile
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active August 28, 2025 15:49
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@derekbtw
derekbtw / _colors.scss
Last active March 5, 2019 13:38
CodyHouse Framework default colors as SCSS variables.
$color-primary-darker: #0940ae;
$color-primary-dark: #0c52df;
$color-primary: #2a6df4;
$color-primary-light: #5a8ef6;
$color-primary-lighter: #8baff9;
$color-accent-darker: #c70a1a;
$color-accent-dark: #f31224;
$color-accent: #f54251;
$color-accent-light: #f8727e;