Skip to content

Instantly share code, notes, and snippets.

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');})();
andydavies / 0_reuse_code.js
Created Jun 18, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View WPT Bookmarklet
javascript:(function(){hostname=document.location;'' + hostname);})();
You can’t perform that action at this time.