Skip to content

Instantly share code, notes, and snippets.

View tai2's full-sized avatar
🐢

Taiju Muto tai2

🐢
View GitHub Profile
@tai2
tai2 / a.md
Created June 28, 2025 09:12
経済成長と環境問題

経済成長=浪費という“不可避の因果”ではない

マクロ経済学が「雇用の安定には成長が必要」と説くのは、生産性向上と人口増を吸収するために需要を拡大するという経験則に基づきます。ところが 成長が即‐大量消費・大量廃棄を伴う必然性はない、ということも近年の実証研究と政策事例から分かってきました。ポイントは 「デカップリング(分離)」—GDP を伸ばしつつ環境負荷を下げることが可能か という問いです。


1 | 何がすでに起きているか──部分的な「絶対デカップリング」の実績

指標 代表例 実績
@tai2
tai2 / react-native-high-priority-events.md
Last active June 22, 2025 08:34
React Native high priority events (investigation result by Devin)

Based on my analysis of the React Native source code, I can provide you with concrete examples of high priority events that can run the render pipeline in the UI thread.

High Priority Events in React Native

From examining the React Native source code, I found that React Native uses a priority-based scheduling system with the following hierarchy (defined in <ref_file file="/home/ubuntu/repos/react-native/packages/react-native/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h" />):

Priority Levels:

  1. ImmediatePriority (value 1, timeout 0ms) - Highest priority
  2. UserBlockingPriority (value 2, timeout 250ms) - Second highest priority
  3. NormalPriority (value 3, timeout 5s)
// 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;
float earth_velocity = 0.005;
@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 May 20, 2025 08:39
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);
pixelDensity(1);