This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class for single data binding management. Converts Markdown data into HTML data. | |
* | |
* @author Brais Saco Estévez | |
* @requires showdown | |
* @url https://github.com/showdownjs/showdown | |
* | |
* @lint global Binder | |
*/ | |
window.Binder = class Binder { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('ngapp') | |
/** | |
* Transform MIME type to FontAwesome 4 icon class | |
*/ | |
.filter('mime2fa', function () { | |
const iconClasses = { | |
// Media | |
'image': 'fa-file-image-o', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const glob = require('glob'); | |
const gpxParse = require('/usr/local/lib/node_modules/gpx-parse'); | |
const moment = require('moment'); | |
const exportDir = ''; | |
const path = `${exportDir}/Sport-sessions/GPS-data/*.gpx`; | |
glob.sync(path).forEach((file) => { | |
gpxParse.parseGpxFromFile(file, (error, result) => { | |
const time = result.tracks[0].segments[0][0].time; |