Skip to content

Instantly share code, notes, and snippets.

View bi119aTe5hXk's full-sized avatar
🏠
Working from home

bi119aTe5hXk bi119aTe5hXk

🏠
Working from home
View GitHub Profile
@bi119aTe5hXk
bi119aTe5hXk / M5Stack_MQTT_Client.ino
Created May 2, 2024 12:01
M5Stack MQTT Client demo
#include <M5Stack.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include "time.h"
#define JST 3600*9
#include <Arduino.h>
#include <vector>
@bi119aTe5hXk
bi119aTe5hXk / m5atom_co2sht.ino
Last active May 2, 2024 12:00
M5Atom CO2+SHT MQTT Sample
#include <M5Atom.h>
#include <MHZ19.h>
#include <Wire.h>
#include <ArtronShop_SHT3x.h>
#include <SoftwareSerial.h>
#include <PubSubClient.h>
#include <WiFi.h>
#define RX_PIN 19 // Rx pin which the MHZ19 Tx pin is attached to
/**
* Get AI count from ATOM Cam AI Service API.
**/
function GetAICount() {
/* 設定 */
const instance_id = "1234" //自分のサービスIDに変更してください
//営業時間帯。指定した時間帯のみ記録します。
const openTime = "9:00";//開店時間
@bi119aTe5hXk
bi119aTe5hXk / ReplaceTexts.playground
Last active February 8, 2021 00:58
Replace texts using swift playground
import Cocoa
import PlaygroundSupport
let path = Bundle.main.path(forResource: "api", ofType: "html")
var htmlString = try? String(contentsOfFile: path!, encoding: .utf8)
//print(htmlString)
//public let replaceTexts = ["org text": "replaced text"]
for _ in 1...100 {
for (key,value) in replaceTexts {
@bi119aTe5hXk
bi119aTe5hXk / Trello_archive_old_cards.playground
Last active November 19, 2020 12:09
Trello archive old cards
import Cocoa
import Foundation
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
//1. Get your key from trello.com/app-key and get foken form trello.com/1/authorize?key=<APIkey>&name=&expiration=never&response_type=token&scope=read,write
let APIKEY = "0a1...7237d"
let APITOKEN = "0d7d...7d31"
//2. Find the board ID
@bi119aTe5hXk
bi119aTe5hXk / keybase.md
Last active May 7, 2018 10:36
keybase.md

Keybase proof

I hereby claim:

  • I am bi119ate5hxk on github.
  • I am bi119ate5hxk (https://keybase.io/bi119ate5hxk) on keybase.
  • I have a public key ASCFcjkAWKsgvBnnmp2M0b0I6Td7BoyjiVG_nvcDuB-aIAo

To claim this, I am signing this object: