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
const AWS = require('aws-sdk'); | |
const fs = require('fs'); | |
const mime = require('mime-types') | |
const path = require("path"); | |
// Base AWS config. | |
// AWS Reference: Make sure the profile exists in ~/.aws/credentials | |
// See managing access keys: | |
// https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html | |
// https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_console |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 time,datetime,csv | |
#http://stackoverflow.com/questions/15578331/save-list-of-ordered-tuples-as-csv | |
#fake set of events. This might come from a sensor later on | |
events = ["event1","event2","event3","event4","event5"] |
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 time,datetime,csv | |
#http://stackoverflow.com/questions/15578331/save-list-of-ordered-tuples-as-csv | |
#fake set of events. This might come from a sensor later on | |
events = ["event1","event2","event3","event4","event5"] |
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
/* FP | |
const loopy = (start_time,duration,onEnterFrame) => { | |
window.requestAnimationFrame((timestamp)=>{ | |
if(start_time === 0) start_time = timestamp; //only true the first run through | |
//const step = getStep(timestamp,start_time,duration) | |
//console.log(timestamp-last_time) | |
//const delta = Math.min(timestamp-last_time,17) |