This file contains hidden or 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
<aside class="sticky-promo" id="sticky-promo">\n <button type="button" class="sticky-promo-close" id="sticky-promo-close"><span>Close</span></button>\n | |
<p>Meet our family of products.</p>\n | |
<hr>\n | |
<ul>\n | |
<li> | |
<a href="https://www.mozilla.org/firefox/browsers/" data-cta-type="cro-sticky-card-suite" data-cta-text="browsers" data-cta-position="v1"><img src="https://www.mozilla.org/media/cro_exp/img/hlockup/browser-white.png" alt="Firefox Browser"></a> | |
</li>\n | |
<li> | |
<a href="https://monitor.firefox.com/?utm_source=www.mozilla.org&utm_medium=referral&utm_campaign=CRO-sticky-promo" data-cta-type="cro-sticky-card-suite" data-cta-text="monitor" data-cta-position="v1"><img src="https://www.mozilla.org/media/cro_exp/img/hlockup/monitor-white.png" alt="Firefox Monitor"></a> | |
</li>\n |
This file contains hidden or 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
// https://gist.github.com/hoosteeno/aeabac67db5a57817c4070df8f8f7a80 | |
function onFormSubmit(e) { | |
var dest = '[email protected]'; | |
var values = e.values; | |
var s = SpreadsheetApp.getActiveSheet(); | |
var headers = s.getRange(1,1,1,s.getLastColumn()).getValues()[0]; | |
var subject = "#Incoming " + values[2].substring(0,68); // max subject length 78 chars | |
var message = ""; |
This file contains hidden or 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
# make new bedrock db environment work on osx | |
brew install coreutils | |
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
./bin/sync-all.sh |
This file contains hidden or 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
const devonly = function(plugin, options) { | |
if (process.argv.length > 2 && process.argv.indexOf('dev') > 0) { | |
return plugin(options); | |
} | |
else { | |
return function(files, metalsmith, done) { | |
done(); | |
}; | |
} | |
}; |
This file contains hidden or 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
--- | |
model: | |
conferences: conferences | |
this_conf: berlin | |
--- | |
<ul> | |
{% for conference in model.conferences %} | |
<li> |
This file contains hidden or 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
if on_device: | |
# this event tells input's javascript that we | |
# are on fennec and came via a feedback prompt | |
fire_event = ('var e = document.createEvent("Events");' | |
'e.initEvent("FeedbackPrompted", true, false);' | |
'document.dispatchEvent(e);') | |
self.selenium.execute_script(fire_event) |
This file contains hidden or 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
// doesn't work: frontmatter isn't substituted for template tags | |
.use(inplace({ | |
engine: 'nunjucks', | |
pattern: '*.html', | |
directory: './source/extra_dir' | |
})) | |
// doesn't work: throws a template error on build | |
.use(inplace({ | |
engine: 'nunjucks', |
This file contains hidden or 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
query.list <- Init(start.date = "2015-11-03", | |
end.date = "2015-12-14", | |
metrics="ga:users,ga:sessions,ga:goal1ConversionRate,ga:goal2ConversionRate,ga:goal3ConversionRate,ga:bounceRate,ga:goal3Completions", | |
dimensions = "ga:date,ga:browser,ga:browserVersion,ga:eventLabel,ga:eventCategory,ga:source", | |
max.results = 10000, | |
sort = "-ga:users", | |
table.id = table.id) | |
ga.query <- QueryBuilder(query.list) | |
return(GetReportData(ga.query, token, split_daywise = T)) |
NewerOlder