Skip to content

Instantly share code, notes, and snippets.

View memodoring's full-sized avatar

Memo Döring memodoring

View GitHub Profile
{"data" : "13.49, 22.3, 86.91, 561.0, 0.08752, 0.07697999999999999, 0.047510000000000004, 0.033839999999999995, 0.1809, 0.057179999999999995, 0.2338, 1.3530000000000002, 1.735, 20.2, 0.004455, 0.013819999999999999, 0.02095, 0.01184, 0.01641, 0.001956, 15.15, 31.82, 99.0, 698.8, 0.1162, 0.1711, 0.2282, 0.1282, 0.2871, 0.06917000000000001"}
{"data" : "7.76,24.54,47.92,181,0.05263,0.04362,0,0,0.1587,0.05884,0.3857,1.428,2.548,19.15,0.007189,0.00466,0,0,0.02676,0.002783,9.456,30.37,59.16,268.6,0.08996,0.06444,0,0,0.2871,0.07039"}
{"data" : "20.6,29.33,140.1,1265,0.1178,0.277,0.3514,0.152,0.2397,0.07016,0.726,1.595,5.772,86.22,0.006522,0.06158,0.07117,0.01664,0.02324,0.006185,25.74,39.42,184.6,1821,0.165,0.8681,0.9387,0.265,0.4087,0.124"}
{"data" : "13.49, 22.3, 86.91, 561.0, 0.08752, 0.07697999999999999, 0.047510000000000004, 0.033839999999999995, 0.1809, 0.057179999999999995, 0.2338, 1.3530000000000002, 1.735, 20.2, 0.004455, 0.013819999999999999, 0.02095, 0.01184, 0.01641, 0.001956, 15.15, 31.82, 99.0, 698.8, 0.1162, 0.1711, 0.2282, 0.1282, 0.2871, 0.06917000000000001"}
{"data" : "7.76,24.54,47.92,181,0.05263,0.04362,0,0,0.1587,0.05884,0.3857,1.428,2.548,19.15,0.007189,0.00466,0,0,0.02676,0.002783,9.456,30.37,59.16,268.6,0.08996,0.06444,0,0,0.2871,0.07039"}
{"data" : "20.6,29.33,140.1,1265,0.1178,0.277,0.3514,0.152,0.2397,0.07016,0.726,1.595,5.772,86.22,0.006522,0.06158,0.07117,0.01664,0.02324,0.006185,25.74,39.42,184.6,1821,0.165,0.8681,0.9387,0.265,0.4087,0.124"}
import os
import io
import boto3
import json
import csv
# grab environment variables
ENDPOINT_NAME = os.environ['ENDPOINT_NAME']
runtime= boto3.client('runtime.sagemaker')
@memodoring
memodoring / index.js
Created November 6, 2018 17:22
AD2 CDMX - Checkpoint 11
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
|| (request.type === 'IntentRequest'
const upsInterceptor={
async process(handlerInput){
let { requestEnvelope, serviceClientFactory, attributesManager} = handlerInput;
let {deviceId} = requestEnvelope.context.System.device;
const upsServiceClient = serviceClientFactory.getUpsServiceClient();
const usertimeZone = await upsServiceClient.getSystemTimeZone(deviceId);
const requestAttributes = attributesManager.getRequestAttributes();
requestAttributes.timeZone = usertimeZone;
attributesManager.setRequestAttributes(requestAttributes);
console.log(JSON.stringify(attributesManager.getRequestAttributes()));
@memodoring
memodoring / index.js
Last active November 14, 2018 14:17
AD2 CDMX - Checkpoint 6
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
|| (request.type === 'IntentRequest'
@memodoring
memodoring / index.js
Last active November 14, 2018 11:27
AD2 CDMX - Checkpoint 2
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
|| (request.type === 'IntentRequest'
@memodoring
memodoring / es-MX.json
Last active November 9, 2018 22:27
AD2 CDMX - Checkpoint 1
{
"interactionModel": {
"languageModel": {
"invocationName": "curiosidades espaciales",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@memodoring
memodoring / index.js
Last active November 9, 2018 22:27
Code Revisions 4 AD2 CDMX - Checkpoint 10
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
|| (request.type === 'IntentRequest'
@memodoring
memodoring / es-MX.json
Last active November 9, 2018 22:27
AD2 CDMX - Checkpoint 9
{
"interactionModel": {
"languageModel": {
"invocationName": "curiosidades espaciales",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{