M5Stack ATOM Lite + SGP30 (M5 Unit Mini TVOC/eCO2) で屁を検出するサンプル。
屁の主成分:
- 窒素 78%、CO2 9%、水素H2 9%、メタン3%、酸素3%
- 臭気成分: 硫化水素・スカトール・インドール(微量)
| import os | |
| import select | |
| import sys | |
| import termios | |
| import tempfile | |
| import threading | |
| import time | |
| import tty | |
| import wave | |
| from dataclasses import dataclass |
Thariq @trq212
本日、Claude Codeの利用状況をより把握しやすくするため、/usageの新アップデートをリリースします。これは多数のお客様との対話から得られた知見に基づくものです。 ヒアリングで繰り返し挙がったのは、セッションの管理方法に大きなばらつきがあるという点でした。特にClaude Codeの100万トークンコンテキストへのアップデート以降、その傾向が顕著です。
ターミナルで開きっぱなしのセッションを1〜2個だけ使うのか?プロンプトごとに新しいセッションを始めるのか?compact、rewind、サブエージェントはいつ使うのか?「悪いcompact」は何が原因で起きるのか?
Prompts to recreate each piece of the OpenClaw system. Use these with any AI coding assistant.
1. Personal CRM "Build a personal CRM that automatically scans my Gmail and Google Calendar to discover contacts from the past year. Store them in a SQLite database with vector embeddings so I can query in natural language ('who do I know at NVIDIA?' or 'who haven't I talked to in a while?'). Auto-filter noise senders like marketing emails and newsletters. Build profiles for each contact with their company, role, how I know them, and our interaction history. Add relationship health scores that flag stale relationships, follow-up reminders I can create, snooze, or mark done, and duplicate contact detection with merge suggestions. Link relevant documents from Box to contacts so when I look up a person, I also see related docs."
2. Meeting Action Items (Fathom)
| # 新規リポジトリ作成 or clone | |
| unalias new 2>/dev/null | |
| new() { | |
| emulate -L zsh | |
| setopt err_return pipefail | |
| local arg="$1" | |
| [[ -z "$arg" ]] && { echo "usage: new <repo-name|owner/repo|git-url> [--public|--private]"; return 1; } |
| import torch | |
| import torch.nn.functional as F | |
| _orig_sdp = F.scaled_dot_product_attention | |
| def _safe_sdp(*args, **kwargs): | |
| # diffusers 側が query/key/value で渡してくるケースに対応 | |
| if len(args) >= 3: | |
| q, k, v = args[:3] | |
| rest_args = args[3:] |