Skip to content

Instantly share code, notes, and snippets.

@ix4
ix4 / .block
Created April 20, 2019 01:42 — forked from maartenzam/.block
Directional dot plot
license: mit
@almccon
almccon / .block
Last active May 15, 2019 18:08
2016 Electoral College
license: mit
@veltman
veltman / README.md
Last active May 17, 2019 01:42
Gif rendering

Testing gif.js in-browser gif rendering with web workers.

@michalskop
michalskop / README.md
Last active May 28, 2019 02:53
SK: Comparison of presidential candidates 2014
@micahstubbs
micahstubbs / .block
Last active May 28, 2019 03:15
Close Votes
license: CC0-1.0
@animateddata
animateddata / .block
Last active May 28, 2019 04:06
UK 2017 General Election majority map
license: gpl-3.0
height: 1200
border: no
@mbostock
mbostock / .block
Last active June 16, 2019 03:59
Creating Thumbnails with GraphicsMagick
license: gpl-3.0
@ix4
ix4 / README.md
Created September 13, 2019 09:58 — forked from tophtucker/README.md
Pagerip

Pinch apart to split the viewport in two, so you can do parallel reading. Pinch together to recombine. Only tested on iPhone & iPad; should work on other multitouch devices?; doesn't do anything (or make any sense) on non-touch single-pointer mouse/trackpad devices, whatever we're calling that classic category these days. But you can see it demo'ed in this tweet.

WHY:

The Web is missing lenses and mirrors and such, I think — images! maps! — fundamental mechanics for getting various views on the same underlying content. We have the freedom to paint any pixel according to any arbitrary rule, and yet it's weirdly hard to . . . like, hold your place in a long document, as one would with a finger marking a page in a book as you skim ahead. Sometimes I highlight the last sentence I read with the mouse so it jumps out when I scroll back up, which is a nice near-unconscious hack that takes advantage of something I know about how document state work

@tophtucker
tophtucker / README.md
Last active September 13, 2019 09:59
Viewport reflowing

Creates as many copies of the document as necessary to show the whole thing, like a sort of pagination. As you scroll, it spools and unspools into as many pages as it needs. So the whole document is kinda visible all at once, in slices.

Why’d I pick The Waste Land? Something with scattered images probably would’ve been better. Idk, sometimes I just get on a kick of using a certain text. Clearly I have very little editorial vision here.

It could be better generalized (so that e.g. there isn’t just a fixed number of pages allocated on load)... and I kinda want all the pages to be drifting around the space... fluttering, bumping. There are also obviously more pragmatic variants, like a dual-page reader that accommodates either page-turning or scrolling. Or a more deterministic layout where the remaining pages are presented in an orderly fashion so you get a better sense of how much you have left to read or w/e. Why would anyway want that anyway. Whyyyy am I doing thissssss————

Long ago, like years ago — wai