Skip to content

Instantly share code, notes, and snippets.

@jargonautical
jargonautical / log_sample.ttl
Created August 14, 2018 13:11 — forked from kal/log_sample.ttl
Sample Turtle File
@prefix txn: <http://example.org/data/transaction/> .
@prefix srv: <http://example.org/data/server/> .
@prefix log: <http://example.org/ont/transaction-log/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
txn:123 a log:Transaction ;
log:processedBy srv:A ;
log:processedAt "2015-10-16T10:22:23"^^xsd:dateTime ;
log:statusCode 200 .
@jargonautical
jargonautical / bng_to_latlon.py
Created April 5, 2018 21:24 — forked from lfigueira/bng_to_latlon.py
Python script to convert British National grid coordinates (OSGB36 Eastings, Northings) to WGS84 latitude and longitude. The code from this script was copied/adapted from Hannah Fry's blog; the original code and post can be found here: http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii, toghe…
#
# Converts eastings and northings (British national grid coordinates) to Lat/Long
#
# Original code author: Hannah Fry; see code/comments here:
# http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii
#
from math import sqrt, pi, sin, cos, tan, atan2 as arctan2
import csv

Click on any arc to zoom in. Click on the center circle to zoom out.

A sunburst is similar to a treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.