We have an index with keys of the form:
[ dim1, dim2, dim3, ... ]
e.g. created with:
var tracking = []; | |
var pending = new Set(); | |
function anticipate(fn) { | |
pending.add(fn); | |
requestAnimationFrame(() => { | |
for (var p of pending) p(); | |
pending.clear(); | |
}); | |
} |
#!/usr/bin/env php | |
<?php | |
use Silex\Application; | |
use Symfony\Component\Routing\Route; | |
use Symfony\Component\Routing\RouteCompiler; | |
use Symfony\Component\Yaml\Yaml; | |
require_once __DIR__ . '/vendor/autoload.php'; |
watch -n 1 cp -u -R ./source ./dest | |
# Run every seconds: `-n 1` | |
# Copy everything from "source" to "dest": | |
# `-R ./source ./dest` | |
# But only if the content is different `-u` |
#! /bin/bash | |
# Bash script for fetching ALL of a Drip account's whatevers to file. | |
# Not fancy, but it works. | |
# | |
# Usage: ./drip-fetch-all.sh <resource> | |
# | |
# brian@knotfield.com | |
RESOURCE=$1 # subscribers, campaigns, tags, ... |
<?php | |
// This is a PLUGIN TEMPLATE for Textpattern CMS. | |
// Copy this file to a new name like abc_myplugin.php. Edit the code, then | |
// run this file at the command line to produce a plugin for distribution: | |
// $ php abc_myplugin.php > abc_myplugin-0.1.txt | |
// Plugin name is optional. If unset, it will be extracted from the current | |
// file name. Plugin names should start with a three letter prefix which is |
$ = jQuery; | |
/* | |
* jQuery BBQ: Back Button & Query Library - v1.3pre - 8/26/2010 | |
* http://benalman.com/projects/jquery-bbq-plugin/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ |