Skip to content

Instantly share code, notes, and snippets.

@sdenier
sdenier / README.md
Last active January 15, 2022 13:54
QGis procedure to visualize orienteering track file (Garmin tcx) + map "a la QuickRoute"

QuickRoute-like Visualisation for Orienteering GPS Tracks using QGis

See QuickRoute website for the one and only inspiration. Unfortunately, since my Mac is a bit old and running VMWare and the like are consuming, I no longer bother to launch it. But I still miss QuickRoute features! So I resolved to play a bit with GPS track files and QGis to get something similar.

For commodity, since I usually upload my Forerunner data to Garmin Connect, I start with a Garmin tcx file, not a gpx. Though a similar procedure can be applied on gpx, Garmin tcx already contains speed field for each point. That's one less thing to do!

1. Extract GPS Track Points

  • On Garmin Connect, select the desired activity and export as tcx
@sdenier
sdenier / Dockerfile
Created January 16, 2018 11:16
Parameterize a multi-stage Docker build output using ARG and ENV
# Build the $MODULE target (which produces a $MODULE binary)
FROM debian:latest as builder
ARG MODULE
COPY src/ .
RUN make ${MODULE}
# Build a minimal image containing the $MODULE binary
FROM alpine:latest as product
@sdenier
sdenier / module_1.js
Last active January 10, 2018 11:09
Do not destructure module import in node if you want to spy on them
const { resolve } = require("path");
function joinPath(root, path) {
// resolve is the reference at load time, so not wrapped by the spy
return resolve(root, path);
}
module.exports = absolutePath;