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
| #!/usr/bin/env ruby | |
| # Usage: | |
| # Save this to a file invoice.rb, and set the values from L#185 on to your needs. | |
| # Then run | |
| # $ ruby invoice.rb | |
| require 'bundler/inline' | |
| require "date" |
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
| # A quick and dirty script to match a bunch of before and after photos of locations. The location of each | |
| # photo is matched by reading timestamps out of a GPX file and finding the closest point in | |
| # the track (time wise) to the time the photo was taken. | |
| # It then groups the photos based on a distance in meters threshold (LocalityGrouper distance parameter). | |
| # The more accurate your GPS and the more frequent your point entries in the GPX track, the | |
| # better this will work. | |
| # | |
| # This script assumes your photos have different dates for the before and after. If this isn't | |
| # the case, you'll need to change the logic used for calculating grouped_photos | |
| # |
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
| // References | |
| // https://developers.google.com/apps-script/reference/spreadsheet/ | |
| // https://developers.google.com/apps-script/reference/xml-service | |
| // https://github.com/international-orienteering-federation/datastandard-v3/blob/master/IOF.xsd | |
| // https://github.com/international-orienteering-federation/datastandard-v3/blob/master/examples/CourseData_Individual_Step2.xml | |
| // https://condes.net/onlinehelp/?HIDD_COPYOBJECTS.html | |
| // See https://docs.google.com/document/d/1qSCO3uMm6tzxSS41zrhS6jWHufgTpipzf4SsAsMLLXQ for instructions on how to use this | |
| // Convert a spreadsheet of control information into a IOF formatted XML file of controls that can be imported into Condes orienteering software. |
OlderNewer