Published
Edited
Nov 21, 2019
Insert cell
Insert cell
shieldWithId = id =>
`https://cdn1.apple-mapkit.com/md/v1/shield?text=${text}&id=${id}&scale=${scale}&v=1911205&accessKey=1574360434_1372712683061880236_%2F_odpccsXSjnrUxN6jzZjGMW%2BM2Zes%2BYFBnaIfM0kOqHA%3D`
Insert cell
stdByteLength = (await (await fetch(shieldWithId(1))).arrayBuffer()).byteLength
Insert cell
JSON.stringify(uniques)
Insert cell
uniques = {
let uniques = [];
for (let i = 0; i < 6500; i++) {
if ((await (await fetch(shieldWithId(i))).arrayBuffer()).byteLength !== stdByteLength) {
uniques.push(i);
yield uniques;
}
}
}
Insert cell
html`${uniques.map(u => html`<img src='${shieldWithId(u)}' />`)}`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more