date: 2012-08-30T00:00:00.000Z tags:
- PICTURES
- LIFE title: '#28 - TL;DR: California is Awesome.' aliases: '#28 - TL;DR: California is Awesome.' draft: false enableToc: true permalink: '28'
| Data for my final project in NW Missouri State University course CSIS 44613 "Data Visualization. Data from my own life, compiled over the course of 3 years. | |
| For more information, see: | |
| - https://aarongilly.com/Pages/Data-Journal | |
| - https://aarongilly.com/Columns/379 | |
| This table describes the `fitness_test_dataset` gist CSV contents. | |
| | FIELD | UNIT | SOURCE | DESCRIPTION | | |
| | -------------------------- | -------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | |
| state,2019,2020 | |
| KS,2100,2141 | |
| IA,39,0 | |
| NV,46,0 | |
| CA,192,0 | |
| MO,103,49 | |
| CO,1,0 |
date: 2012-08-30T00:00:00.000Z tags:
| //#region ---- ABOUT ---- | |
| /** | |
| * This Code is meant to be published as a Google Apps Script WebApp. | |
| * | |
| * # Pre-work | |
| * ## Setting Trigger to add a new row each day. | |
| * 1. Set a "Trigger" in Apps Script to run the `oneAM()" function each night between midnight and 1am. This makes a new row for you & copies formulas to it. | |
| * | |
| * ## Making the web app | |
| * 1. Click Publish > Deploy as web app... |
| <script lang="ts"> | |
| /** | |
| * When a file is dropped here (or selected via browsing) this is the function that will be called back | |
| */ | |
| export let fileCallback: (file: File)=>any | |
| function handleDrop(ev: any) { | |
| // Prevent default behavior (Prevent file from being opened) | |
| ev.preventDefault(); | |
| (<HTMLDivElement>ev.target).classList.remove("drug"); |
| /** | |
| * Will find all permutations of the given set of 'dominos' that can | |
| * be laid in a single line end to end to form a valid domino train. | |
| */ | |
| function start() { | |
| const dominos = ['05','60','54','66','40','43','21','35','03','24','32','52','11']; | |
| dominos.forEach(domino=>{ | |
| let remaining = dominos.filter(d=>d!=domino); | |
| lookForValidTrain([domino], remaining); | |
| }) |
| //This is a few lines of code that produces a base36 timestamp | |
| function mkTt() { return new Date().getTime().toString(36)} | |
| //len is any number between 0 and 10 | |
| function mkId(len=3){ return new Date().getTime().toString(36)+"."+Math.random().toString(36).slice(13-len).padStart(len,"0") } | |
| //this will pull the date portion of the mkId and will parse the mkTt | |
| function parseDate(tinyId){new Date(parseInt(tinyId.split(".")[0],36))} |