Skip to content

Instantly share code, notes, and snippets.

View LouiseSteward's full-sized avatar

Louise Steward LouiseSteward

View GitHub Profile
@LouiseSteward
LouiseSteward / monetization-tracker.js
Created October 22, 2021 10:36
Example of the monetization tracking code, for "The Economy"
/*jslint browser */
/*globals window */
// Use tracking pixels in an AWS S3 bucket to count visitors with web monetization
function ebMonetizationCounter() {
"use strict";
// First determine whether this is the beginning of a new session
let isContinuedSession = sessionStorage.getItem("isContinuedSession");
@LouiseSteward
LouiseSteward / 01.md
Last active March 16, 2021 05:58
Choose a URL from a list based on a random percentage chance
title style
1. Hello World
chapter page-1

1 Hello World

Start here.

{:.dice-roll-link}