Skip to content

Instantly share code, notes, and snippets.

@andydavies
andydavies / gist:2a82839e30bff61dcffb
Created December 9, 2015 12:15
Bookmarklet for securityheaders.io
Save this script as a bookmark, then use it to test the current page
javascript:(function(){hostname=document.location.hostname;window.open('https://securityheaders.io/?q=' + hostname);})();
@andydavies
andydavies / gist:3cdcca42bd9f4289424c
Created December 10, 2015 22:16
Query for HTTPArchive BigQuery data to list all font files for sites x top sites
select pages.url, pages.rank, req.url
from [httparchive:runs.latest_requests] as req
join (
select url, rank, pageid, reqFont from [httparchive:runs.latest_pages]
) as pages on pages.pageid = req.pageid
where lower(req.mimetype) contains "font"
and pages.rank <= 100 and pages.reqFont > 0
order by pages.rank
javascript:(function(){hostname=document.location;window.open('http://www.webpagetest.org?url=' + hostname);})();
@andydavies
andydavies / 0_reuse_code.js
Created June 18, 2016 19:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@andydavies
andydavies / sslbookmarklet.js
Last active June 18, 2016 19:54
SSL Labs bookmarklet
javascript:(function(){hostname=document.location.hostname;window.open('https://www.ssllabs.com/ssltest/analyze.html?d=' + hostname + '&hideResults=on');})();
@andydavies
andydavies / .block
Last active October 16, 2016 19:35
Treemap of BBC News Resources
license: cc-by-sa-4.0
@andydavies
andydavies / .block
Last active August 17, 2017 20:20
Sunburst Chart of Web Page composition / download size
license: cc-by-sa-4.0
→ ssh -oKexAlgorithms=diffie-hellman-group1-sha1 -c 3des-cbc admin@192.168.1.254
http://conntrack-tools.netfilter.org/manual.html
# Commands
?
help
logout
exit
quit
@andydavies
andydavies / Beef and Ale Stew.md
Last active November 22, 2018 17:17
Beef and Ale Stew

Ingredients

  • 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

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 Amazon.com

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