Skip to content

Instantly share code, notes, and snippets.

View tai2's full-sized avatar
🐢

Taiju Muto tai2

🐢
View GitHub Profile
// MarsRetrograde.pde — Processing(Java) float‑only version
// --------------------------------------------------------------
// Visualises heliocentric Earth/Mars orbits (left) and
// geocentric, unit‑circle view of Mars as seen from Earth (right).
// 全て float で計算・描画するので、Processing 標準の sin(), cos(), sqrt() が使えます。
// === Orbital parameters (astronomical units, days) ===
final float aE = 1.0; // semi‑major axis Earth (AU)
final float eE = 0.0167; // eccentricity Earth
final float TE = 365.256; // sidereal period Earth (days)
int N_BESSEL = 5;
int N_ECCENTRIC_ANOMALY = 5;
float EARTH_ECCENTRICITY = 0.01671;
float EARTH_SEMI_MAJOR_AXIS = 1.0;
float MARS_ECCENTRICITY = 0.0934;
float MARS_SEMI_MAJOR_AXIS = 1.52400;
float earth_angle = 0;
float mars_angle = 0;
@tai2
tai2 / a.md
Last active April 22, 2025 07:13
xcodebuild -showsdks
xcode-select: note: No developer tools were found, requesting install.
If developer tools are located at a non-default location on disk, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
See `man xcode-select` for more details.
tai2@TaijunoMacBook-Pro ~ % c
tai2@TaijunoMacBook-Pro ~ %  xcodebuild -showsdks
DriverKit SDKs:
const bessel = (x, alpha, n) => {
if (n < 0) {
throw new Error("n must be non-negative");
}
if (alpha < 0) {
throw new Error("alpha must be non-negative");
}
let sum = 0;
for (let m = 0; m <= n; m++) {

日本の自治体の中で、リチウムイオン電池を回収してくれない自治体は存在するか


リチウムイオン電池の回収について、日本の自治体ごとの対応を調査します。

以下の点を確認したいので、詳しく教えてください。 • 特定の自治体(例:東京都、大阪市など)の情報が知りたいですか? • それとも全国的な傾向(回収しない自治体の例など)を知りたいですか? • 具体的な回収方法(例:回収ボックス、指定日に回収など)も必要ですか?

リチウムイオン電池の回収について、日本の自治体ごとの対応を調査します。
以下の点を確認したいので、詳しく教えてください。
• 特定の自治体(例:東京都、大阪市など)の情報が知りたいですか?
• それとも全国的な傾向(回収しない自治体の例など)を知りたいですか?
• 具体的な回収方法(例:回収ボックス、指定日に回収など)も必要ですか?
日本の自治体におけるリチウムイオン電池回収の現状
全国的な傾向
On the Movements of the Earth
size(400, 400);
line(120, 80, 340, 300);
----
火星の奇跡
地球から見上げる
なにかの星座のまわりを回る
* 10/12
@tai2
tai2 / earth-mars.pde
Last active March 1, 2025 02:11
Explain the relation between Earth and Mars
float earth_angle = 1;
float mars_angle = 0;
float earth_velocity = -0.005;
PVector sun;
float mars_circle_extent = 150;
float planet_extent = 10;
void setup() {
size(1000, 1000);
sun = new PVector(width * 0.5, height * 0.5);
@tai2
tai2 / a.js
Created February 19, 2025 01:59
device and simulator information
import { utilities } from "appium-ios-device";
import { getSimulator } from "appium-ios-simulator";
const main = async () => {
const udid_list = await utilities.getConnectedDevices();
console.log(udid_list);
for (const udid of udid_list) {
const deviceInfo = await utilities.getDeviceInfo(udid);
console.log(deviceInfo);
$ sysctl hw | grep cache
hw.perflevel0.l1icachesize: 196608
hw.perflevel0.l1dcachesize: 131072
hw.perflevel0.l2cachesize: 16777216
hw.perflevel1.l1icachesize: 131072
hw.perflevel1.l1dcachesize: 65536
hw.perflevel1.l2cachesize: 4194304
hw.cacheconfig: 8 1 4 0 0 0 0 0 0 0
hw.cachesize: 3481141248 65536 4194304 0 0 0 0 0 0 0