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
#ifndef SUNSET_H_ | |
#define SUNSET_H_ | |
#include<math.h> | |
// 計算式は下記のWebサイトを参考に実装しています | |
// 日出日没計算、やってみよう | |
// https://hhsprings.pinoko.jp/site-hhs/2015/02/%e6%97%a5%e5%87%ba%e6%97%a5%e6%b2%a1%e8%a8%88%e7%ae%97%e3%80%81%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86/ | |
typedef struct _DateTime { | |
int year; |
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 matplotlib.pyplot as plt | |
import cartopy.crs as ccrs | |
import cartopy.feature as cfeature | |
import pandas as pd | |
from PIL import Image | |
import numpy as np | |
import os | |
# CSVファイルを読み込む | |
# https://github.com/ksasao/ekimemo/blob/main/src/20250304/data.csv をローカルに保存してください |
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
// Scent+GPS Logger for M5Atom Atomic GPS Kit | |
// Library version M5Atom 0.1.3 | |
// Board version M5Stack 2.1.3 | |
#include "bme68xLibrary.h" | |
#include "M5Atom.h" | |
#include <sys/time.h> | |
#include <SPI.h> | |
#include "FS.h" | |
#include <SD.h> | |
#include <TinyGPS++.h> |
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
/** | |
* @file inputText.ino | |
* @author SeanKwok ([email protected]) | |
* @brief M5Cardputer input text test | |
* @version 0.1 | |
* @date 2023-10-13 | |
* | |
* | |
* @Hardwares: M5Cardputer | |
* @Platform Version: Arduino M5Stack Board Manager v2.0.7 |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FindSnippingToolPath | |
{ | |
using System; | |
using System.Diagnostics; |
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
using System; | |
using Windows.Graphics.Imaging; | |
using Windows.Media.Ocr; | |
using Windows.Storage.Pickers; | |
using Windows.Storage.Streams; | |
using Windows.Storage; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using System.Text; |
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 json | |
import argparse | |
from shapely.geometry import Point, Polygon | |
from shapely.strtree import STRtree | |
def read_json(file_path): | |
with open(file_path, 'r', encoding='utf-8') as file: | |
data = json.load(file) | |
return data |
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
#include "M5Atom.h" | |
#include <WiFi.h> | |
#include <PubSubClient.h> | |
#include <WiFiClientSecure.h> | |
#include "bme68xLibrary.h" | |
#include <math.h> | |
// home | |
const char* ssid = "your-ssid"; | |
const char* password = "your-password"; |
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
# Description: このスクリプトは、YouTubeの動画を再生して、その中の富士山が見えるかどうかを判定します。 | |
# あらかじめchromeをインストールし、そのバージョンにあった chromedriver を | |
# 以下からダウンロードしてこのスクリプトと同じフォルダに配置 | |
# https://googlechromelabs.github.io/chrome-for-testing/ | |
# 環境変数 OPENAI_API_KEY に OpenAI の APIキーを設定してください。 | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.chrome.service import Service as ChromeService | |
from webdriver_manager.chrome import ChromeDriverManager | |
from PIL import Image |
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
/* | |
* SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD | |
* SPDX-License-Identifier: MIT | |
* M5Stack LLM Module で日本語対話。Serial MonitorでBoth BL&CRを設定するとよいです。 | |
*/ | |
#include <Arduino.h> | |
#include <M5Unified.h> | |
#include <M5ModuleLLM.h> | |
M5ModuleLLM module_llm; |
NewerOlder