順次、選択、そして繰り返し

プログラミングのことやITのこと、たまに演劇のことも書きます。

2017-01-01から1ヶ月間の記事一覧

AWSIoT httpを用いてのpublish(メモ)

console.log('start'); $("#button").on("click", test); var iotdata = new AWS.IotData({ endpoint: 'endpoint', accessKeyId: 'accessKeyId', secretAccessKey: 'secretAccessKey', region: 'region' }); function test() { console.log('click'); var pa…

APIGatewayからAWSLambdaを叩く(POST送信)

『サーバーレスアーキテクチャ』という言葉にひかれて、 APIGatewayからAWSLambdaを叩いてみた。 そして、色々詰まったのでメモとして残しておく。 まずはAPIGatewayの設定。メソッドリクエストの設定。 リクエスト本文のコンテンツタイプに application/x-w…

GoogleMapsAPI リクエスト メモ

var directionsService; var directionsDisplay = []; /*緯度*/ var longitude = 35.7102849; /*経度*/ var latitude = 139.77714030000004; var map; var allCount = 1; var i = 0; function initMap() { var mapdiv = document.getElementById('map'); dir…