Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jimmykane's full-sized avatar
🏠
Working from home

Dimitrios Kanellopoulos jimmykane

🏠
Working from home
View GitHub Profile
!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")}();
<?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">');
#! /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
@jimmykane
jimmykane / gist:7934112
Last active December 31, 2015 04:29
App engine python Boiler Main
'''
@author: Dimitrios Kanellopoulos
@contact: jimmykane9@gmail.com
'''
import os
import logging
import webapp2
import jinja2