Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gpx creator="StravaGPX" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" xmlns="http://www.topografix.com/GPX/1/1"> | |
<metadata> | |
<name>Growler</name> | |
<author> | |
<name>Carlos Perez</name> | |
<link href="https://www.strava.com/athletes/110895"/> | |
</author> | |
<copyright author="OpenStreetMap contributors"> | |
<year>2020</year> |
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() { | |
/*** START SCRIPT CONFIG ***/ | |
// Replace with value for your form. ie. "#your-form-id" or ".your-form-class" | |
var FORM_SELECTOR = ".recipe-form"; | |
// Do you want to hide the success message after the form is submitted? | |
var HIDE_SUCCESS_MESSAGE = false; | |
// Do you want the success message to show above the form? |
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 convertDataURIToBinary(dataURI) { | |
var BASE64_MARKER = ';base64,'; | |
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length; | |
var base64 = dataURI.substring(base64Index); | |
var raw = window.atob(base64); | |
var rawLength = raw.length; | |
var array = new Uint8Array(new ArrayBuffer(rawLength)); | |
for (i = 0; i < rawLength; i++) { | |
array[i] = raw.charCodeAt(i); |
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
import { Model } from '@vuex-orm/core' | |
// FASTER UID | |
let count = 0 | |
const myUid = () => ++count | |
export class Category extends Model { | |
static entity = 'categories' | |
static fields() { |
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
// CCP: ENHACED VUE-TIPPY FUNCTIONALITY | |
// -------------------------- // | |
// Author: Carlos Perez | |
// Bike Monkey Inc. | |
// https://www.bikemonkey.net | |
// [email protected] | |
// -------------------------- // | |
// License: Do whatevah you want with this. Just throw back some enhancements! | |
// -------------------------- // | |
// This mixin modifies the behavior of the vue-tippy settings |
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
// AUTO GENERATE SIMPLE UNIQUE ID'S FOR NON-EMPTY ROWS | |
// | |
// Author: Carlos Perez, [email protected] | |
// | |
// Purpose: This Google Sheets script fires when any cell is edited and | |
// inserts a random (reasonably unique) UID of ID_LENGTH length | |
// into the specified ID_COLUMN. For instance if the first column in the | |
// sheet specified by SHEETNAME is the column where you would like the | |
// UID injected, then ID_COLUMN should be 1. | |
// |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> | |
<div id="results"> | |
<h3>Display results here from VUE</h3> | |
<!-- Angel, work in here --> | |
</div> | |
<script> | |
// QUICK GOOGLE SPREADSHEET QUERY |
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
<script src="https://cdn.jsdelivr.net/jquery/3.1.1/jquery.min.js"></script> | |
<script> | |
/// Convert query string to JSON | |
function getJsonFromUrl(hashBased) { | |
var query; | |
if(hashBased) { | |
var pos = location.href.indexOf("?"); | |
if(pos==-1) return []; | |
query = location.href.substr(pos+1); | |
} else { |
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 | |
DATETIME=$(date +%Y%m%d) | |
echo "MOVE ALL CSV FILES INTO A SINGLE FILE." | |
echo "join [outputfile]" | |
mkdir output | |
mkdir ./output/$1_$DATETIME | |
cat *.csv >./output/$1_$DATETIME.csv | |
mv *.csv ./output/$1_$DATETIME | |
open ./output |
NewerOlder