Skip to content

Instantly share code, notes, and snippets.

View thomascorrie's full-sized avatar

Thomas Corrie thomascorrie

View GitHub Profile
@KainokiKaede
KainokiKaede / movesjson2gpx.py
Last active January 1, 2018 11:19
This script converts JSON file obtained from Moves Export service into gpx files.
"""
This is a simple code to convert Moves JSON file to gpx files.
Each day in JSON file will be converted into different gpx file,
one file for a single day.
If you think this behavior annoying, please feel free to rewrite the code:D
Usage: 1. Get JSON file from: http://moves-export.herokuapp.com/
2. The file you've got may have some errors to be a valid JSON file,
so do some surgery to the file.
I did `s/,\+/,/g` in Vim to delete successive commas,
@robschmuecker
robschmuecker / README.md
Last active July 22, 2024 12:38
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.