Skip to content

Instantly share code, notes, and snippets.

View angel-devicente's full-sized avatar

Angel de Vicente angel-devicente

View GitHub Profile
/******************************************************************
* Angel de Vicente (angel.de.vicente@iac.es)
* https://github.com/angel-devicente/
*
* A simple example to illustrate the use of locks with passive target
* synchronization (MPI RMA).
*
* We assume a type of master-worker setting, where the master process will keep a
* window variable (w_counter) so that everybody can keep track of the job ids
* being done. In this example each process, including the master, is going to do
From:
-----
<wpt x="-16.315847" y="28.487274"></wpt>
To:
---
<trkpt lat="28.487274" lon="-16.315847">
<time>2014-10-03T07:08:14Z</time></trkpt>
<trkpt lat="28.487280000" lon="-16.315840000">
<time>2014-10-03T07:08:14Z</time></trkpt>
<trkpt lat="28.487280000" lon="-16.315840000"></trkpt>
@angel-devicente
angel-devicente / gpxhyper.py
Created May 13, 2015 23:26
Script to create gpx hyperlapses (see
#!/usr/bin/python
"""
SVMyRide
Takes a gpx file, loads the points + calcs bearing, gets a matching SV image
Only produces images: convert to a video via ffmpeg, avidemux, etc
"""
import xml.etree.ElementTree as ET
import urllib, os, math
curl -X POST -H 'Content-Type: application/gpx+xml' --data-binary @input.gpx "http://test.roadmatching.com/rest/mapmatch/?app_id=YOUR_APP_ID&app_key=YOUR_APP_KEY&output.waypoints=true" -o output.xml