This file contains 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
!function(){!function(e,o){const t=`${e}.fit`;fetch(`/apiserver/v1/workout/exportFit/${e}${o}`,{method:"GET",cache:"no-cache",headers:{STTAuthorization:window.localStorage.sessionkey}}).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{window.document.body.innerHTML=`<h2><a href="${e}" download="${t}">Download FIT</a></h2>`})}(window.location.pathname.split("/").filter(Boolean).pop(),"?autogeneraterecords=true&generatefillerlaps=true&removesinglelocation=true")}(); |
This file contains 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
<?php | |
/** | |
* @author Kanstantsin A Kamkou (2ka.by) | |
* History: | |
* - 21.08.2012 Bootstrap 2.1.0 corrections | |
* - 31.03.2013 Acl check added | |
*/ | |
$html = array('<ul class="nav">'); |
This file contains 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
#! /usr/bin/env python2 | |
# Requires: PIL, colormath | |
# | |
# Improved algorithm now automatically crops the image and uses much | |
# better color matching | |
from PIL import Image, ImageChops | |
from colormath.color_objects import RGBColor | |
import argparse | |
import math |
This file contains 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
''' | |
@author: Dimitrios Kanellopoulos | |
@contact: [email protected] | |
''' | |
import os | |
import logging | |
import webapp2 | |
import jinja2 |