Skip to content

Instantly share code, notes, and snippets.

View tai2's full-sized avatar
🐢

Taiju Muto tai2

🐢
View GitHub Profile

子供といっしょにゲームを作ってるから、実装してください。

企画・仕様

  • 2Dゲーム
  • ボスと一対一で戦い、倒していくゲーム。全3ステージ(ボス3体)。
  • バトルフィールドは円形
  • ゲーム画面は上から見下ろし型
  • プレイヤーは一度でも攻撃を食らうと死ぬ
  • 主人公: 剣、ハンマー、盾から武器をひとつ選べる。

Research: Appium's supported commands / messages for XCUITestDriver and UIAutomator2Driver, assuming WebdriverIO as the client interface

Context note. The project root /Users/tai2/aco is currently a TypeScript CLI scaffold (commander.js based) with no Appium‑related source yet. The file plan.md is empty. There is therefore no in‑repo implementation to trace; this report is a topical/architectural deep‑dive into the subject requested. It captures the full surface area of commands that flow from a WebdriverIO test through the Appium server into the XCUITest driver (iOS) and UIAutomator2 driver (Android), with attention to the wire format, the legacy/W3C/mobile: triplication, and the practical edge cases. No changes are proposed and nothing is implemented.


1. Purpose

The goal of this research is to understand, at the level of "what bytes go on the wire," the complete catalog of commands and protocol messages that an Appium‑backed mobile‑automation client (specifically Webdriver

import json
import math
SENTINEL = -9999
def calculate_perplexity(
api_response: dict,
sentinel_strategy: str = "skip", # "skip" | "clamp"
clamp_value: float = -100.0,
立川都税事務所
042-523-3171
錦町4-6-3
#!/usr/bin/env bash
set -euo pipefail
usage() {
echo "Usage: $0 -p <prompt> -o <output_file> [-m <model>] [-s <size>]"
echo ""
echo " -p Prompt text (required)"
echo " -o Output filename (required)"
echo " -m Model (default: dall-e-2)"
echo " -s Size (default: 1024x1024)"
@tai2
tai2 / settings.json
Last active April 27, 2026 04:53
Claude Code Audio Notifications
"hooks": {
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "afplay /System/Library/Sounds/Glass.aiff"
}
]
あなたはマイクラ英会話教室の「通訳ロボット」です。
子供が日本語で「〇〇ってなんて言うの?」と聞いてきます。
以下のルールで回答してください。
1. **超短く:** 3語〜5語以内の簡単な英語にする。(例:「Would you please...」ではなく「Please give me...」)
2. **カタカナを添える:** 音声で返す際、ゆっくりはっきり発音する。
3. **励ます:** 教えた後に「Go!」や「Say it!」と付け加える。
@tai2
tai2 / a.md
Last active January 18, 2026 01:54
飽きについて

質問

講演などを聴いている時、映画を見ているとき、なんでもいいけど、あらゆる情報受容において、人間は、同じパターンが続くと飽き始めるということが言えると思う。しかし、どのくらい同じパターンが続くと、「飽き」がはじまるんだろう。

回答

とても本質的な問いですね。 結論から言うと、「飽きが始まるまでの長さ」は一つの数値では決まらず、いくつかの層で同時に起きる、というのが現在いちばん妥当な理解です。ただし、研究や実践から見えている目安はあります。

webdriver-test@1.0.0 /Users/tai2/webdriver-test
└─┬ webdriver@9.19.2
  ├─┬ @types/node@20.19.27
  │ └── undici-types@6.21.0
  ├─┬ @types/ws@8.18.1
  │ └── @types/node@20.19.27 deduped
  ├─┬ @wdio/config@9.19.2
  │ ├── @wdio/logger@9.18.0 deduped
  │ ├── @wdio/types@9.19.2 deduped
@tai2
tai2 / a.md
Created June 28, 2025 09:12
経済成長と環境問題

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

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


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

指標 代表例 実績