Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Emmel seanemmel-ba

  • Blue Acorn
View GitHub Profile
@seanemmel-ba
seanemmel-ba / QubitDashboardExpIDs.js
Last active Apr 25, 2016
A bookmarklet that adds experiment ID info to each experiment summary row in the Qubit Dashboard on the "Live" and "Drafts" tabs for ease of reference.
View QubitDashboardExpIDs.js
javascript:(function() {
/**
* @package N/A
* @version 1.2 //=> 4/25/2016
* @author Blue Acorn <code@blueacorn.com>, Sean Emmel <sean.emmel@blueacorn.com>
* @copyright Copyright © 2016 Blue Acorn.
*
* LAST UPDATED: 4/25/2016
@seanemmel-ba
seanemmel-ba / QubitDebugger.js
Last active Feb 12, 2019
A bookmarklet that enables you to retrieve information about Qubit experiments, including IDs, variations mapping, creative key groups, SmartServe script ID, and more, all in a GUI modal.
View QubitDebugger.js
javascript:(function() {
/**
* @package N/A
* @version 1.1 //=> 3/1/2016
* @author Blue Acorn <code@blueacorn.com>, Sean Emmel <sean.emmel@blueacorn.com>
* @copyright Copyright © 2016 Blue Acorn.
*
* LAST UPDATED: 3/1/2016
@seanemmel-ba
seanemmel-ba / poll_for_element_helper_fn.js
Created Nov 20, 2015
Helper function to poll for DOM els that don't exist on page load (helpful for Optimization platforms). The `this` context is set to the element you poll for in your callback function. Interval times out after 10s by default to prevent endless polling.
View poll_for_element_helper_fn.js
/**
* @package N/A
* @version 1.0
* @author Blue Acorn <code@blueacorn.com>, Sean Emmel <sean.emmel@blueacorn.com>
* @copyright Copyright © 2015 Blue Acorn.
*/
/**
* @param {String} - the CSS selector for your element in question
@seanemmel-ba
seanemmel-ba / _mixins.scss
Last active Oct 22, 2015
A few helpful mixins for vendor-prefixing, transitions, and borders
View _mixins.scss
@mixin borderRadius($topRight, $bottomRight, $bottomLeft, $topLeft) {
-webkit-border-top-right-radius: $topRight;
-moz-border-top-right-radius: $topRight;
-ms-border-top-right-radius: $topRight;
-o-border-top-right-radius: $topRight;
border-top-right-radius: $topRight;
-webkit-border-bottom-right-radius: $bottomRight;
-moz-border-bottom-right-radius: $bottomRight;
-ms-border-bottom-right-radius: $bottomRight;
-o-border-bottom-right-radius: $bottomRight;
@seanemmel-ba
seanemmel-ba / cookie_factory_fns.js
Last active Jun 18, 2018
A script in the revealing module pattern exposing fn's to create, read, and erase cookies using vanilla JavaScript.
View cookie_factory_fns.js
@seanemmel-ba
seanemmel-ba / Optly Force URL
Last active Dec 9, 2015
A bookmarklet that allows you to easily bucket yourself into an Optimizely experiment and variation via the use of query parameters. More info can be found here: https://help.optimizely.com/hc/en-us/articles/200107480-Force-a-specific-variation-to-run-and-other-URL-parameters-
View Optly Force URL
javascript:(function() {
/**
* @package N/A
* @version 1.0
* @author Blue Acorn <code@blueacorn.com>, Sean Emmel <sean.emmel@blueacorn.com>
* @copyright Copyright © 2015 Blue Acorn.
*/
(function() {
@seanemmel-ba
seanemmel-ba / OptimizelyDebugger.js
Last active Feb 14, 2018
A bookmarklet that enables you to retrieve information about active Optimizely experiments, variations, segments, cookies, and more, all in a GUI modal.
View OptimizelyDebugger.js
javascript:(function() {
/**
* @package N/A
* @version 1.0
* @author Blue Acorn <code@blueacorn.com>, Sean Emmel <sean.emmel@blueacorn.com>
* @copyright Copyright © 2015 Blue Acorn.
*/
function Modal() {