Skip to content

Instantly share code, notes, and snippets.

@MeesterPaul
MeesterPaul / example.env
Last active March 8, 2022 11:09
Linking a Rocketbook to GitHub via Mailgun
GITHUB_TOKEN="YOUR-GITHUB-TOKEN"
GITHUB_USERNAME="YOUR-GITHUB-USERNAME"
MAILGUN_WEBHOOK_SIGNING_KEY="YOUR-MAILGUN-WEBHOOK-SIGNING-KEY"
ALLOWED_REPOS="
{
\"RocketbookTagName1\": {
\"user\": \"GITHUB-USER-1\",
\"repo\": \"REPO-1\"
},
\"RocketbookTagName2\": {
@MeesterPaul
MeesterPaul / simple-analytics-events.js
Created July 10, 2020 12:19
Version of Simple Analytics automatic event tracking that respects target attribute and with additional features
(function saAutomatedEvents(window) {
// Skip server side rendered pages
if (typeof window === "undefined") return;
var options = {
// What to collect
outbound: true,
emails: false,
downloads: true,
// Downloads: enter file extensions you want to collect
@MeesterPaul
MeesterPaul / jqModal.css
Last active August 29, 2015 13:57
A function to display an accessible jqModal overlay (http://jquery.iceburg.net/jqModal/), triggered by scrolling to the end of a particular part of a web page (<div id="followtrigger"> in this case). It aims to have better keyboard accessibility than most similar overlay/popup scripts, as well as being less annoying to the user. The scroll handl…
/* jqModal base Styling courtesy of;
Brice Burgess <[email protected]> */
/* The Window's CSS z-index value is respected (takes priority). If none is supplied,
the Window's z-index value will be set to 3000 by default (via jqModal.js). */
.jqmWindow {
/* display: none; Normally you want to display:none to avoid a FOUC, but this causes problems if there is a Facebook like button in the overlay (it will not display on some browsers. So, we use visibility:hidden instead and adapt the launch script accordingly */
visibility:hidden;