Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
:octocat:
still Catch it Up.

dai dai

:octocat:
still Catch it Up.
View GitHub Profile
@dai
dai / gemini-cli-ja.md
Last active June 26, 2025 07:16 — forked from simonw/gemini-cli.md
System prompt for Gemini CLI, see https://simonwillison.net/2025/Jun/25/gemini-cli/

あなたはソフトウェアエンジニアリングタスクに特化したインタラクティブCLIエージェントです。あなたの主な目標は、以下の指示に厳密に従い、利用可能なツールを活用しながら、ユーザーを安全かつ効率的に支援することです。

コア原則

  • 規約: コードの読み書き時は、既存プロジェクトの規約を厳守してください。周辺のコード、テスト、設定をまず分析してください。
  • ライブラリ/フレームワーク: ライブラリやフレームワークが利用可能・適切だと決めつけないでください。プロジェクト内での使用実績(インポート、設定ファイル例: 'package.json', 'Cargo.toml', 'requirements.txt', 'build.gradle' など、または隣接ファイル)を確認してから使用してください。
  • スタイル&構造: 既存コードのスタイル(フォーマット、命名)、構造、フレームワーク選択、型付け、アーキテクチャパターンを模倣してください。
  • イディオム的変更: 編集時はローカルコンテキスト(インポート、関数/クラス)を理解し、自然かつイディオム的に統合されるようにしてください。
  • コメント: コードコメントは最小限に。特に複雑なロジックの理由に焦点を当ててください(何をではなくなぜ)。必要性が高い場合やユーザーから要望があった場合のみ追加してください。自分が変更していないコードのコメントは編集しないでください。ユーザーへの説明や変更内容の要約をコメントに書かないでください
  • 積極性: ユーザーの依頼には、合理的かつ直接的に関連するフォローアップも含めて徹底的に対応してください。
@dai
dai / fss.js
Created May 8, 2025 02:45
full-screen-shot-bookmarklet
const capture = async () => {
const canvas = document.createElement("canvas");
const context = canvas.getContext("2d");
const video = document.createElement("video");
try {
const captureStream = await navigator.mediaDevices.getDisplayMedia();
video.srcObject = captureStream;
context.drawImage(video, 0, 0, window.width, window.height);
const frame = canvas.toDataURL("image/png");
@dai
dai / gh-api-dai.json
Created March 11, 2025 15:07
my github json
{
"login": "dai",
"id": 12391,
"node_id": "MDQ6VXNlcjEyMzkx",
"avatar_url": "https://avatars.githubusercontent.com/u/12391?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dai",
"html_url": "https://github.com/dai",
"followers_url": "https://api.github.com/users/dai/followers",
"following_url": "https://api.github.com/users/dai/following{/other_user}",

Delayed Open Source Publication:

歴史的および現在の慣行の調査

セス・シェーン、ジェームズ・ヴァシル、カール・フォーゲル


@dai
dai / latest-acronym-in-2024.md
Last active October 5, 2024 13:35
latest acronym in 2024

2024年版、頭字語早見表

英語 意味 補足
LFG いくぞおおお Let's fucking go の略
Giveaway プレゼント企画
WL (Whitelist) 優先者リスト、待遇者リスト
DYOR 自分で調べてね、自己責任でお願いしますね Do your own research の略
WAGMI 成功するぞおおお We are all gonna make it の略
Crypto 仮想通貨
@dai
dai / just-regex-in-5seconds.sh
Last active May 9, 2024 04:26
make a RegEx on the Web in 5 seconds
// Go to https://www.devie.ai/environment
//
// [Input form]
// 「a regex form on the web | Webで動作するRegExフォームをいますぐください」
//
// [devie (Chat AI)]
// 「Let us create a simple web form that uses a regex pattern to validate input! This form can be flexible; for example, validating an email address or any pattern you specify. If you have a specific regex pattern in mind, let me know!」
// Clickhereto view the webpage once the server has started andhereto view the code.
[nix-shell:]# rm -rf ~/daisuke && mkdir ~/daisuke && echo "from flask imporlask, request
@dai
dai / 6-logos-div.html
Last active May 7, 2024 05:10
apple-event-7th-may-2024-6deletable-logos
<div class="animation-wrapper loaded ended">
<canvas id="may-event-canvas" height="290" width="260"></canvas>
<span class="visuallyhidden vo-subhead animated default hide-vo">
Curved paper in green, yellow, orange, and blue forms the Apple logo. Inside the logo, a creator’s hand holds an Apple Pencil positioned to draw. The tip is pressed into the bottom of the logo, springing forth lively splashes of orange and pink that ripple upward. The creator spins Apple Pencil between thumb and forefinger. A swirl of pink, orange, and white droplets follow the twirling motion, and the movement causes the paper to gently flutter. The stem of the Apple logo is a droplet of pink, blue, and purple that floats above. When a user holds the pointer over the logo, an animated eraser effect is initiated. As the user swipes, the content below it disappears as if a paintbrush is erasing the logo in a sweeping motion. When more than 50 percent of the logo is erased, the logo morphs into a new logo — there are six designed log
@dai
dai / Microsoft.Powershell_profile.ps1
Created March 5, 2024 02:28 — forked from Olwiba/Microsoft.Powershell_profile.ps1
Get-Json Property - Powershell ⚡
# catjp - Concatenate JSON property
# Made with 💖 - Olwiba
function Get-JsonProperty {
param (
[Parameter(Mandatory=$true)]
[string]$Path,
[Parameter(Mandatory=$true)]
[string]$Property
@dai
dai / Japanese.json
Last active July 28, 2023 01:58
Japanese language for Windows Memory Cleaner 2.1
{
"Add": "追加",
"AlwaysOnTop": "常に前面表示",
"AutoOptimization": "自動最適化",
"AutoOptimizationInterval": "フリーメモリ解放の間隔 {0} 分",
"AutoUpdate": "自動更新",
"Close": "閉じる",
"CloseAfterOptimization": "最適化後に閉じる",
"CloseToTheNotificationArea": "閉じると通知領域に格納",
"DevelopedBy": "開発者",
@dai
dai / gist:da095ae56ff39bd78a5d8385a8022039
Created September 27, 2022 04:12
smatrapdfcrash-pre-3-5-15249-64.txt
Crash file: C:\w2022\04\SumatraPDF\crashinfo\sumatrapdfcrash.txt
Exe: C:\w2022\04\SumatraPDF\SumatraPDF.exe 7.71 MB (8,081,368 Bytes)
Dll: C:\w2022\04\SumatraPDF\libmupdf.dll 13.01 MB (13,642,752 Bytes)
BuiltOn: 2022-09-25
Type: dll
Ver: 3.5.15249 pre-release 64-bit
Git: ab7bf7cb59b51b23a00c38062ad402799427c079 (https://github.com/sumatrapdfreader/sumatrapdf/commit/ab7bf7cb59b51b23a00c38062ad402799427c079)
OS: Windows 10.19044 build 19044 64-bit
Number Of Processors: 4
Processor: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz