Skip to content

Instantly share code, notes, and snippets.

View thole's full-sized avatar

thole

  • Hamburg
View GitHub Profile
@thole
thole / index.html
Last active November 29, 2015 22:29
calendar - yearly
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<title>yearly</title>
<head>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="//thole.github.io/lib/colorbrewer/colorbrewer.js"></script>
<style type="text/css">
text {
@thole
thole / data.csv
Last active December 6, 2015 22:24
barcode transport 2015
Date Activity Group Start End Duration Distance
01.01.15 transport transport 2015-01-01T15:29:40+01:00 2015-01-01T15:46:20+01:00 1000 5.427
01.01.15 downhill_skiing 2015-01-01T16:03:13+01:00 2015-01-01T16:28:15+01:00 1502 11.792
01.01.15 walking walking 2015-01-01T16:31:03+01:00 2015-01-01T16:31:33+01:00 30 0.015
02.01.15 downhill_skiing 2015-01-02T12:07:49+01:00 2015-01-02T12:55:20+01:00 2851 10.931
02.01.15 walking walking 2015-01-02T12:55:20+01:00 2015-01-02T12:55:50+01:00 30 0.021
02.01.15 downhill_skiing 2015-01-02T13:01:19+01:00 2015-01-02T13:28:52+01:00 1653 4.144
02.01.15 walking walking 2015-01-02T16:03:34+01:00 2015-01-02T16:05:04+01:00 90 0.061
02.01.15 walking walking 2015-01-02T19:55:23+01:00 2015-01-02T19:57:53+01:00 150 0.137
03.01.15 walking walking 2015-01-03T13:06:54+01:00 2015-01-03T13:23:55+01:00 1021 1.097
@thole
thole / cycling_2015.topojson
Last active December 6, 2015 22:22
bike rides 2015
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thole
thole / data.json
Last active December 7, 2015 21:14
[
{
"lat":53.566972,
"lng":9.986076
},
{
"lat":53.567845,
"lng":9.982728
},
{
We can't make this file beautiful and searchable because it's too large.
Longitude,Latitude
-0.206443,51.496345
-0.189713,51.489523
-0.173827,51.490536
-0.192311,51.496668
-0.171308,51.495892
-0.204301,51.495863
-0.201326,51.498245
-0.216389,51.518349
-0.207445,51.507511
var fs=require('fs');
var dir='history';
var data={};
var cache = {};
function countOccurence(array,name){
var result = 0;
array.forEach(function(d){
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="//thole.github.io/lib/d3/d3.v5.js"></script>
<style>
body {
background-color: #5f6062;
margin: 100px;
}
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
background-color: #000000;
}
@thole
thole / all.geojson
Last active December 30, 2015 23:03
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thole
thole / index.html
Last active October 21, 2018 18:37
isotype
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="//d3js.org/d3.v3.min.js"></script>
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="960" height="500">
<defs>
<path
d="m 137.36691,362.90977 c -6.6,-0.32462 -39.6134,-0.62303 -73.363118,-0.66312 C 28.492278,362.20445 2.256528,361.78962 1.728841,361.26193 1.222305,360.75539 0.880715,349.71576 0.960334,336.42505 1.039164,323.26627 0.972904,308.9 0.813089,304.5 c -0.515665,-14.19739 0.57978,-36.21248 2.214189,-44.49841 2.491584,-12.63153 10.062994,-22.49237 21.121568,-27.50826 7.970842,-3.61538 17.341166,-4.30905 67.718064,-5.01307 25.575,-0.35741 46.6218,-0.77098 46.77067,-0.91905 0.21833,-0.21716 -0.75856,-10.67439 -2.05223,-21.96826 -0.43867,-3.82972 1.96733,-2.48764 5.63099,3.141 5.59458,8.59518 18.57603,17.56509 31.47664,21.74969 11.854,3.8451 31.36922,3.56067 44.1013,-0.64278 10.43149,-3.44391 24.31403,-13.66736 30.07263,-22.14624 1.3919,-2.0494 3.33688,-3.68398 4.38809,-3.68779 2.03671,-0.007 2.04171,-1.24183