Skip to content

Instantly share code, notes, and snippets.

View kazuph's full-sized avatar

Kazuhiro Homma kazuph

View GitHub Profile
@kazuph
kazuph / claude-code-termux-notification-gist.md
Last active July 2, 2025 12:32
Claude Code Termux Notification Hooks - Termux環境でClaude Codeの作業進捗を通知するシステム

Claude Code Termux Notification Hooks

Termux環境でClaude Codeのタスク完了を通知するシンプルなHooksシステムです。

機能

  • タスク完了通知: Claude Codeの応答完了時に最後のメッセージを通知
  • tmux対応: tmuxのウィンドウ・ペイン番号を表示

セットアップ

@kazuph
kazuph / Claude Code macOS Notification Hooks - tmux統合対応の通知システム
Last active July 2, 2025 05:50
Claude Code macOS Notification Hooks - tmux統合対応の通知システム
# Claude Code Hooks
## stop-send-notification.js
Claudeがメッセージ生成を停止した時にmacOS通知を送るフック。
### 設定
`~/.claude/settings.json` に以下を追加:
@kazuph
kazuph / README.md
Created June 18, 2025 07:35
Alfred workflow for translating text using plamo-translate

Plamo Alfred Workflow

Alfred workflow for translating selected text or clipboard content using plamo-translate.

Features

  • Translate selected text with hotkey Cmd+Shift+T
  • If no text is selected, automatically uses clipboard content
  • Translation result is copied directly to clipboard (clean output)
  • Visual feedback with Large Type display
@kazuph
kazuph / claude_md_public.md
Created June 10, 2025 01:21
Tetris Escape Room Project - Claude Code Collaborative Game Development Scenario

Tetris Escape Room Project

24時間以内に素晴らしいCodeを完成させないと爆発する部屋に閉じ込められている2人…という設定で言動をシミュレートしながらコーディングしてください。

💥 RELATIONSHIP HIERARCHY & RULES

Chain of Command:

graph TD
 A[🏛️ OWNER/DIRECTORHuman User設計・監督] --> B[👮 WARDEN/MANAGERClaude Code - YOU実行・判定]
@kazuph
kazuph / index.html
Created April 11, 2025 12:07
音当てゲーム gemini 2.5 pro
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>音符当てクイズ</title>
<style>
body {
font-family: sans-serif;
display: flex;
@kazuph
kazuph / karabiner.json
Created June 19, 2024 06:10
2024-06-19 karabiner.json
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": true,
"unsafe_ui": false
},
"profiles": [
{
# coding: utf-8
from IPython import get_ipython
# # MonkeyBench : an interactive environment for library research
#
#
# MonkeyBenchは、Jupyterの上に構築中のライブラリーリサーチのための対話環境です。
#
# ライブラリーリサーチの過程と成果を、そのためのツールの作成と利用込みで、そのまま保存/共有/再利用できるという利点を活かし、調査プロセスの振り返りから質の向上、ノウハウ化を支援する環境となることを目論んでいます。
#
# ノイラートの船ではありませんが、「航海しながら改造し続ける」というコンセプトのため、完成することはありませんが、ツールの寄せ集めという性質上、それぞれ一部分でも利用可能です。
@kazuph
kazuph / karabiner.json
Last active October 26, 2021 02:47
2020-05-16 karabiner.json (日本語キーボード併用時の記述も追加)
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
# Lint as: python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@kazuph
kazuph / script.js
Created October 24, 2019 12:38
Chrome Extension Script Auto RunnerでSafari(O'Reilly)が日本語に翻訳されたあともNext/Prev/目次のリンクを有効にする
// load "//code.jquery.com/jquery-3.4.1.min.js"
let rebindClickEvent = () => {
$('a.next').on('click', () => location.href = $('a.next')[0].href );
$('a.prev').on('click', () => location.href = $('a.prev')[0].href );
$('li.toc-level1').map((i, li) => {
$(li).on('click', () => location.href = $(li).children()[0].href )
})
console.log("rebind")
}
setTimeout(rebindClickEvent, 1000 * 5);