This file contains hidden or 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
| // | |
| // ContentView.swift | |
| // TextFieldPractice | |
| // | |
| // Created by Katsuyoshi Ito on 2023/01/10. | |
| // | |
| import SwiftUI | |
| // CoreDataを想定してOptionalを扱うモデルを用意 |
This file contains hidden or 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 <Wire.h> | |
| #include <stdlib.h> | |
| #include "EPD_1in9.h" | |
| //////////////////////////////////////full screen update LUT//////////////////////////////////////////// | |
| unsigned char DSPNUM_1in9_on[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, }; // all black | |
| unsigned char DSPNUM_1in9_off[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; // all white | |
| unsigned char DSPNUM_1in9_WB[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }; // All black font | |
| unsigned char DSPNUM_1in9_W0[] = {0x00, 0xbf, 0x1f, 0xbf, 0x1f, 0xbf, 0x1f, 0xbf, 0x1f, 0xbf, 0x1f, 0xbf, 0x1f, 0x00, 0x00, }; // 0 |
This file contains hidden or 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 __ENV_H__ | |
| #define __ENV_H__ | |
| #define WIFI_SSID "your wifi ssid" | |
| #define WIFI_PASSWORD "your password for WIFI_SSID" | |
| //#define WIFI_SSID_2 "your second wifi ssid if you have" | |
| //#define WIFI_PASSWORD_2 "your password for WIFI_SSID2" | |
| //#define WIFI_SSID_3 "your third wifi ssid if you have" | |
| //#define WIFI_PASSWORD_3 "your password for WIFI_SSID3" |
This file contains hidden or 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 <Arduino.h> | |
| #include "esp_camera.h" | |
| #include "camera_pins.h" | |
| #include "battery.h" | |
| #include "soc/soc.h" | |
| #include "soc/rtc_cntl_reg.h" | |
| #include "bmm8563.h" | |
| #include "base64.hpp" | |
This file contains hidden or 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
| def combi_abx a,b,x | |
| print "combi_abx(a:#{a}, b:#{b}, x:#{x})\t" | |
| x100 = x / 100 | |
| a100 = a | |
| b100 = b / 10 | |
| b100 = [b100 - 1, 0].max if (b % 10) < (x / 10) % 10 | |
| return 0 if a100 + b100 < x100 | |
| [b100, x100].min + ((a100 < x100) ? 0 : 1) | |
| end |
This file contains hidden or 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 <M5Stack.h> | |
| float gps_date = 0; | |
| // the setup routine runs once when M5Stack starts up | |
| void setup(){ | |
| // Initialize the M5Stack object | |
| M5.begin(); |
This file contains hidden or 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
| key | en | ja | ko | zh-Hans | zh-HK | zh-Hant | |
|---|---|---|---|---|---|---|---|
| +TAX | TAX | 税込 | 세금 포함 | 含税 | 含稅 | 含稅 | |
| +TAX1 | TAX | 税込 | 세금 포함 | 含税 | 含稅 | 含稅 | |
| +TAX2 | TAX | 税込 | 세금 포함 | 含税 | 含稅 | 含稅 | |
| +TIP | TIP | チップ | 팁 | 小费 | 小費 | 小費 | |
| +TIP1 | TIP | チップ | 팁 | 小费 | 小費 | 小費 | |
| +TIP2 | TIP | チップ | 팁 | 小费 | 小費 | 小費 | |
| -TAX | NO TAX | 税抜 | 세금 없음 | 不含税 | 不含稅 | 不含稅 | |
| -TAX1 | NO TAX | 税抜 | 세금 없음 | 不含税 | 不含稅 | 不含稅 | |
| -TAX2 | NO TAX | 税抜 | 세금 없음 | 不含税 | 不含稅 | 不含稅 |
This file contains hidden or 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 <M5Stack.h> | |
| #include <Ultrasonic.h> | |
| const int USONIC_PIN = 2; | |
| Ultrasonic ultrasonic(USONIC_PIN); | |
| void setup() { | |
| M5.begin(); | |
| M5.Lcd.setTextSize(2); | |
| } |
This file contains hidden or 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
| <?xml version='1.0' encoding='UTF-8'?> | |
| <kml xmlns='http://www.opengis.net/kml/2.2'> | |
| <Document> | |
| <Placemark> | |
| <name> | |
| 1. 市立体育館前 | |
| </name> | |
| <description> | |
| <![CDATA[<table> | |
| <tr><th>設置番号</th><td>1</td></tr> |
This file contains hidden or 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
| require 'rexml/document' | |
| require 'csv' | |
| REXML::Document.new.tap do |doc| | |
| doc << REXML::XMLDecl.new('1.0', 'UTF-8') | |
| REXML::Element.new('kml').tap do |kml| | |
| doc.add_element(kml) | |
| kml.add_attribute('xmlns','http://www.opengis.net/kml/2.2') |