Skip to content

Instantly share code, notes, and snippets.

View erindethorne's full-sized avatar

Erin DeThorne erindethorne

View GitHub Profile
@erindethorne
erindethorne / experiment.js
Last active February 26, 2018 15:07
Tower Product Page Package Cards w/ Template Gallery CTA
var $ = window.jQuery;
var EXPERIMENT_ID = 10316347878;
$(document).ready(function() {
window.setTimeout(fireAdobeEventForExperiment, 2000);
});
// Helper for firing Adobe Experiment Event
function fireAdobeEventForExperiment() {
var variation_id = window.optimizely.variationIdsMap[EXPERIMENT_ID][0];
db.sites.update(
{
benefitId: {$exists: true}
}, {
$set: {
entitlements: {
'ACTIVITY_REPORTS':true,
'CUSTOM_DOMAIN': true,
'MAX_PAGES': 2147483647,
'ONLINE_STORE': true,
var fs = require('fs');
var Promise = require('bluebird');
var MongoClient = require('mongodb').MongoClient;
var mongoUrl = process.env.MONGO_URL;
var filename = process.argv[2];
var contents = fs.readFileSync(filename, 'utf-8')
var jsonData = JSON.parse(contents);