Skip to content

Instantly share code, notes, and snippets.

View seanemmel-ba's full-sized avatar

Sean Emmel seanemmel-ba

  • Blue Acorn
View GitHub Profile
@seanemmel-ba
seanemmel-ba / QubitDashboardExpIDs.js
Last active April 25, 2016 18:05
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.
javascript:(function() {
/**
* @package N/A
* @version 1.2 //=> 4/25/2016
* @author Blue Acorn <[email protected]>, Sean Emmel <[email protected]>
* @copyright Copyright © 2016 Blue Acorn.
*
* LAST UPDATED: 4/25/2016
@seanemmel-ba
seanemmel-ba / QubitDebugger.js
Last active February 12, 2019 15:29
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.
javascript:(function() {
/**
* @package N/A
* @version 1.1 //=> 3/1/2016
* @author Blue Acorn <[email protected]>, Sean Emmel <[email protected]>
* @copyright Copyright © 2016 Blue Acorn.
*
* LAST UPDATED: 3/1/2016
@seanemmel-ba
seanemmel-ba / poll_for_element_helper_fn.js
Created November 20, 2015 16:03
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.
/**
* @package N/A
* @version 1.0
* @author Blue Acorn <[email protected]>, Sean Emmel <[email protected]>
* @copyright Copyright © 2015 Blue Acorn.
*/
/**
* @param {String} - the CSS selector for your element in question
@seanemmel-ba
seanemmel-ba / _mixins.scss
Last active October 22, 2015 17:43
A few helpful mixins for vendor-prefixing, transitions, and borders
@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 June 18, 2018 14:25
A script in the revealing module pattern exposing fn's to create, read, and erase cookies using vanilla JavaScript.
@seanemmel-ba
seanemmel-ba / Optly Force URL
Last active December 9, 2015 04:32
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-
javascript:(function() {
/**
* @package N/A
* @version 1.0
* @author Blue Acorn <[email protected]>, Sean Emmel <[email protected]>
* @copyright Copyright © 2015 Blue Acorn.
*/
(function() {
@seanemmel-ba
seanemmel-ba / OptimizelyDebugger.js
Last active February 14, 2018 20:50
A bookmarklet that enables you to retrieve information about active Optimizely experiments, variations, segments, cookies, and more, all in a GUI modal.
javascript:(function() {
/**
* @package N/A
* @version 1.0
* @author Blue Acorn <[email protected]>, Sean Emmel <[email protected]>
* @copyright Copyright © 2015 Blue Acorn.
*/
function Modal() {