Skip to content

Instantly share code, notes, and snippets.

window.setupDraggable = function setupDraggable(sendEvent) {
const BEACON_ATTRIBUTE = "data-beacon";
const MINIMUM_DRAG_DISTANCE_PX = 10;
document.addEventListener("pointerdown", awaitDragStart);
function awaitDragStart(startEvent) {
document.addEventListener("pointermove", maybeDragMove);
document.addEventListener("pointerup", stopAwaitingDrag);
@paulp
paulp / The Signs of Soundness
Last active June 17, 2021 06:48
The Signs of Soundness
Hello scala, my old friend
I've come to take you home again
Because a feature slowly creeping
left me plagued with doubts and weeping
and the version that was tagged in the repo
just has to go
it lacks the signs of soundness
On sleepless nights I hacked alone
applying ant and other tools of stone