This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.reduce = function(fn, acc) { | |
if (acc === undefined && this.length !== 0) | |
return this.slice(1).reduce(fn, this[0]); | |
if (this.length === 0) return acc; | |
return this.slice(1).reduce(fn, fn(acc, this[0])); | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function getABTest() { | |
var abTestName = '', | |
abTestVariation = '', | |
abTest = 'No test', | |
abTestExperiments = optimizely.allExperiments[Object.keys(optimizely.variationMap)]; | |
if (abTestExperiments) { | |
abTestVariation = Object.keys(optimizely.variationNamesMap).map(function(el) { return optimizely.variationNamesMap[el]; })[0]; | |
abTestName = abTestExperiments.name; | |
abTest = abTestName + ': ' + abTestVariation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"user": { | |
"debug": false, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "background", | |
"linters": { | |
"jshint": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/*/ | |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.myInterval = setInterval(function() { | |
if ($(SELECTOR).length > 0) { | |
OPTIMIZELY CHANGES | |
clearInterval(window.myInterval); | |
} | |
}, 50); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@binkmail.com | |
@bobmail.info | |
@chammy.info | |
@devnullmail.com | |
@letthemeatspam.com | |
@mailinater.com | |
@mailinator.net | |
@mailinator2.com | |
@notmailinator.com | |
@reallymymail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create result object, where everything will get saved | |
var result = ''; | |
// create the headers | |
result += 'campaign name, status, created, updated, failed, sent, opened, clicked, converted'; | |
result += '\n'; | |
// loop over each row | |
$('tbody tr').each(function(i, el) { |
OlderNewer