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 requests | |
requests.post("http://maker.ifttt.com/trigger/button_pressed/with/key/YOUR_SECRET_KEY", json={"value1": "Hello world."}) |
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 os | |
import sys | |
import json | |
root = os.environ["LAMBDA_TASK_ROOT"] | |
sys.path.insert(0, root) | |
import boto3 | |
s3 = boto3.client('s3') |
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
// print Count and Time | |
int cntst = delta.indexOf("\"Count\":"); | |
if (cntst != -1) { | |
cntst += strlen("\"Count\":"); | |
int cnted = delta.indexOf(","); | |
if (cnted == -1) { | |
cnted = delta.indexOf("}"); | |
} | |
String cnt = delta.substring(cntst, cnted); | |
Serial.println("Count: " + cnt); |
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
"state": { | |
"desired": { | |
"Count": バケットの中のオブジェクトの数, | |
"Time": アップロードされたオブジェクトの変更日時 | |
} | |
} |
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 os | |
import sys | |
root = os.environ["LAMBDA_TASK_ROOT"] | |
sys.path.insert(0, root) |
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
# coding: utf-8 | |
'''Sending / Receiving SMS using Raspberry Pi, Soracom Air SIM and ABIT AK-020 | |
''' | |
import time | |
import serial | |
import re | |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.js"></script> | |
<script src="https://cdn.mlkcca.com/v0.6.0/milkcocoa.js"></script> | |
<title>ESPr-BME280</title> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.js"></script> | |
<script src="https://cdn.mlkcca.com/v0.6.0/milkcocoa.js"></script> | |
<title>ESPr-BME280</title> | |
</head> | |
<body> |
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
str = ''' | |
from machine import Pin | |
import utime | |
from m5stack import lcd, buttonA | |
pinout = Pin(5, Pin.OUT) | |
def onA(): | |
for i in range(0, 2): | |
pinout.value(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
CREATE EXTERNAL TABLE IF NOT EXISTS table_name ( | |
Item struct < | |
id:struct < | |
S:string | |
>, | |
address:struct < | |
M:struct < | |
zip:struct < | |
S:string | |
>, |
OlderNewer