Skip to content

Instantly share code, notes, and snippets.

View nakasyou's full-sized avatar

Shotaro Nakamura nakasyou

View GitHub Profile
@GOROman
GOROman / Codex-Micro-LED-Protocol.md
Created August 7, 2026 07:15
Codex Micro LED制御プロトコル解析

Codex Micro LED制御プロトコル解析

解析日: 2026-08-07
対象: Codexデスクトップアプリ + Work Louder Codex Micro(BLE HID)
目的: 6個のエージェントキーと、キー照明・外周照明を互換デバイスから制御する

結論

Codex MicroのLED制御は、独自UUIDのBLEサービスではない。標準のBLE HID Service(HOGP)内にある Report Characteristic を使い、Vendor HID Report ID 6 の中へJSON-RPCを分割して送っている。

import { Project } from "hikkaku";
import {
add,
addToList,
callProcedure,
changeVariableBy,
defineProcedure,
deleteAllOfList,
divide,
equals,

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@mizchi
mizchi / getDeclaration.ts
Created January 30, 2025 12:47
Get .d.ts from input path
/**
* @prompt
* 指定されたTypeScriptのファイルから型定義とimportを抽出します
* $ deno run -A getDeclaration.ts <target>
*/
import ts from "npm:typescript@5.7.3";
export function getSourceSummary(filePath: string): string {
const compilerOptions: ts.CompilerOptions = {
@VictorTaelin
VictorTaelin / ai_reasoning_challenge_v2.md
Last active March 8, 2026 07:24
INVERT A BINARY TREE - $10k AI REASONING CHALLENGE (v2)

THE PROBLEM

🌲 Invert a binary tree! 🌲

Except with 3 catches:

  1. It must invert the keys ("bit-reversal permutation")
  2. It must be a dependency-free, pure recursive function
  3. It must have type Bit -> Tree -> Tree (i.e., a direct recursion with max 1 bit state)
@mizchi
mizchi / あなたのパフォーマンスを倍にする Frontend Ops はいかがですか.md
Last active November 13, 2026 13:37
あなたのパフォーマンスを倍にする Frontend Ops の傭兵はいかがですか

WIP

@nakasyou
nakasyou / setup_deno.sh
Created August 23, 2024 15:09
setup deno ChatGPT
#!/bin/bash
# Denoのインストール
curl -fsSL https://deno.land/x/install/install.sh | sh
# .bashrcまたは.zshrcにパスを追加
if [ -n "$ZSH_VERSION" ]; then
echo 'export DENO_INSTALL="$HOME/.deno"' >> ~/.zshrc
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
@nakasyou
nakasyou / tailwind.css
Last active June 2, 2024 03:46
tailwind postcss
@tailwind base;
@tailwind components;
@tailwind utilities;
@nakasyou
nakasyou / eruda.ts
Created June 2, 2024 03:45
eruda vite
if (import.meta.env.DEV) {
const script = document.createElement('script')
script.src = 'https://cdn.jsdelivr.net/npm/eruda'
// @ts-ignore global eruda
script.onload = () => globalThis.eruda.init()
document.body.append(script)
}