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
// load coordinate data from a GPX file | |
// the input will be a file uploaded by user | |
// the output will be a list of coordinates | |
function loadGPXFile(file) { | |
var reader = new FileReader(); | |
reader.onload = function(e) { | |
var xml = e.target.result; | |
var gpx = new window.DOMParser().parseFromString(xml, "text/xml"); | |
var coordinates = []; | |
var tracks = gpx.getElementsByTagName("trk"); |
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
import folium.plugins | |
def plot_pie_chart(layer, coord, radius, numbers, labels): | |
total = sum(numbers) | |
start_angle = 0 | |
for index, number in enumerate(numbers): | |
if number == 0: | |
continue | |
percent = number / total | |
angle = round(percent * 360, 1) |
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
#SingleInstance Ignore | |
OnExit ExitSub | |
SetWorkingDir %A_ScriptDir% | |
; ----- Send Clipboard ----- | |
!v:: | |
SendInput {Raw}%clipboard% | |
Return | |
; ----- Always On Top ----- |
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
# -*- coding: utf-8 -*- | |
# @Author: Yue Wu <[email protected]> | |
# @Date: 2017-04-01 19:32:32 | |
# @Last Modified by: Yue Wu | |
# @Last Modified time: 2017-04-17 23:24:13 | |
import json | |
import requests | |