Adapted from Mike Bostock's Zoomable Sunburst to include arc labels.
Click on any arc to zoom in. Click on the center circle to zoom out. Click on canvas background to reset zoom.
Also packaged as a reusable component at sunburst-chart.
// Stop CF edge from caching your site when specific wordpress cookies are present | |
// script found in https://www.mmaton.com/2018/07/02/cloudflare-cache-anonymous-requests/ | |
addEventListener('fetch', event => { | |
event.respondWith(noCacheOnCookie(event.request)) | |
}) | |
async function noCacheOnCookie(request) { | |
// Determine which group this request is in. | |
const cookie = request.headers.get('Cookie') |
Adapted from Mike Bostock's Zoomable Sunburst to include arc labels.
Click on any arc to zoom in. Click on the center circle to zoom out. Click on canvas background to reset zoom.
Also packaged as a reusable component at sunburst-chart.
### ADD RPM Forge repository | |
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm | |
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt | |
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm # Verifies the package | |
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm | |
### APACHE | |
# Dependencies |
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/d3-zoomable-sunburst |
# usage: redfin-images "http://www.redfin.com/WA/Seattle/123-Home-Row-12345/home/1234567" | |
function redfin-images() { | |
wget -O - $1 | grep "full:" | awk -F \" '{print $4}' | xargs wget - | |
} |