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
#!/bin/bash | |
# BEFORE RUNNING: remember to "cp .env-example .env" in order for the tests | |
# to pick up the required environment variables! | |
unset BUNDLE_GEMFILE | |
result=0 | |
if [ "$CI" == "true" ]; then | |
BUNDLE_PATH="$HOME/vendor/bundle" |
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
exit_code=0 | |
echo ">>> Testing main app" | |
if [ -z "$(which bundle)" ]; then | |
gem install bundler | |
fi | |
bundle install | grep Installing | |
bundle exec rspec | |
exit_code+=$? |
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
Wed Sep 28 22:21:18 UTC 2016 |
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
#!/bin/bash | |
# BUNDLE UPDATE ENHANCER | |
# Preconditions: | |
# all components must have a Gemfile | |
# all components must use RVM and have a .ruby-version and .ruby-gemset | |
if [ $# -eq 0 ]; then | |
echo "💔 No arguments supplied!" | |
echo "You must provide the name of the gem you want to update in your main app and all your components." |
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
# Created this script to verify that GaiaGPS GPX distance calculation is wrong. Using geopy and Harvestine formula I can match GPS Track Editor and Strava's distance. | |
import xml.etree.ElementTree as ET | |
# Read the GPX file | |
def read_gpx(file_path): | |
tree = ET.parse(file_path) | |
root = tree.getroot() | |
coordinates = [] | |
OlderNewer