Skip to content

Instantly share code, notes, and snippets.

andydavies / index.html
Created Nov 25, 2020 — forked from 3urdoch/index.html
TCF2.0 Compliant approach to loading Google Ad Manager, Prebid and Amazon APS tags that prevents TCV2.1a errors
View index.html
<!doctype html>
<html lang="en">
<!-- Quantcast CMP, pasted un-modified from Quantcast interface -->
<script type="text/javascript" async=true>
(function() {
var host = window.location.hostname;
View WPT Bookmarklet
javascript:(function(){hostname=document.location;'' + hostname);})();
andydavies / keyworksFromUrl.js
Created Jul 27, 2020 — forked from johnmurch/keywordsFromUrl.js
Parse keywords from URL
View keyworksFromUrl.js
let url = "";
let kwparse = (url.replace('https://','').replace('http://','').replace('www','').replace('com','').split('-').join().split('/').join().split('.')).join(',').replace(/^,/, '')
let kwuniq = [ Set(kwparse.split(','))].filter(function(e){return e});
View geo.vcl
sub vcl_recv {
#FASTLY recv
# We don't do other methods
if (req.method != "GET") {
# Handle IPv4 or IPv6 provided in url path (nothing extraneous allowed, perform basic matching)
if (req.url.path ~ "^/([a-f0-9:.]+)$") {
set client.geo.ip_override =;

Depending on where you are on your Data Viz journey, I'd probably start with Dona Wong or Cole Knaflic, then Andy Kirk, then Kopenen & Hildén (once I've read K&H I might swap the last two around)

Cairo's books are nice interlude and Few's is quite heavy weight (in both senses) though useful for dashboard design

(Amazon links are associate ones so feel free to buy elsewhere e.g. Hive in the UK)

The Wall Street Journal Guide to Information Graphics: The Dos and Don'ts of Presenting Data, Facts, and Figures, Dona Wong

Storytelling with Data: A Data Visualization Guide for Business Professionals Paperback, Cole Knaflic

View Beef and Ale


  • Bottle of beer - I used Abbot this time but can be Guinness, Black Sheep, what ever takes your fancy
  • Knorr beef stock pot
  • Bay leaves
  • Black pepper
  • Carrots - 1 to 1 1/5 per person depending on size
  • Large onion or a couple of medium ones
  • 3 - 4 cloves of garlic
  • Shallots (bag off)
  • Lean stewing beef - 400g ish
View gist:61b8703f0a0192e5bf173a8941ff380d
→ ssh -oKexAlgorithms=diffie-hellman-group1-sha1 -c 3des-cbc admin@
# Commands
andydavies / .block
Last active Aug 17, 2017
Sunburst Chart of Web Page composition / download size
View .block
license: cc-by-sa-4.0
andydavies / .block
Last active Oct 16, 2016
Treemap of BBC News Resources
View .block
license: cc-by-sa-4.0
andydavies / sslbookmarklet.js
Last active Jun 18, 2016
SSL Labs bookmarklet
View sslbookmarklet.js
javascript:(function(){hostname=document.location.hostname;'' + hostname + '&hideResults=on');})();
You can’t perform that action at this time.