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:30
timeselector
<html>
<head>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="//thole.github.io/lib/crossfilter/crossfilter.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.js"></script>
<style>
rect {
fill: steelblue;
}
@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.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 / 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 / data.json
Last active January 12, 2016 21:19
This file has been truncated, but you can view the full file.
[{"trackpoints":[{"ele":17.6,"ms":0},{"ele":17.7,"ms":1000},{"ele":17.7,"ms":3000},{"ele":17.7,"ms":4000},{"ele":18,"ms":6000},{"ele":18,"ms":7000},{"ele":17.9,"ms":9000},{"ele":17.8,"ms":10000},{"ele":18,"ms":11000},{"ele":17.9,"ms":13000},{"ele":17.9,"ms":14000},{"ele":17.8,"ms":15000},{"ele":17.6,"ms":16000},{"ele":17.5,"ms":17000},{"ele":17.1,"ms":18000},{"ele":17.2,"ms":19000},{"ele":17.4,"ms":20000},{"ele":17.3,"ms":21000},{"ele":17.3,"ms":22000},{"ele":16.8,"ms":24000},{"ele":16.8,"ms":25000},{"ele":16.8,"ms":28000},{"ele":16.6,"ms":29000},{"ele":16.5,"ms":30000},{"ele":16.7,"ms":31000},{"ele":16.7,"ms":32000},{"ele":16.6,"ms":33000},{"ele":16.5,"ms":34000},{"ele":16.4,"ms":35000},{"ele":16.2,"ms":36000},{"ele":16.2,"ms":37000},{"ele":16.3,"ms":38000},{"ele":16.3,"ms":39000},{"ele":16.3,"ms":40000},{"ele":16.4,"ms":41000},{"ele":16.5,"ms":42000},{"ele":16.6,"ms":43000},{"ele":16.8,"ms":46000},{"ele":16.9,"ms":47000},{"ele":16.9,"ms":48000},{"ele":17,"ms":49000},{"ele":17,"ms":50000},{"ele":17,"ms":5100