Skip to content

Instantly share code, notes, and snippets.

@hidao80
hidao80 / markdown.json
Last active July 26, 2026 05:06
VS Code user snippets for Markdown file frontmatter management for markdown-vault.
{
"Frontmatter for markdown vault": {
"prefix": "@@frontmatter",
"body": [
"---",
"name: $TM_FILENAME_BASE",
"description: $2",
"created_at: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"updated_at: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"author: ${0:hidao}",
@hidao80
hidao80 / statusline-command.sh
Last active July 19, 2026 03:17
A Bash script to modify the status line for the Claude Code CLI.
#!/bin/bash
# Dependencies: awk, jq
# Displayed as follows: `Sonnet 5 [high] ▸ current_dir ▸ ○○○○○○○○○○ 6% 62.16k`
input=$(cat)
# Model name
model=$(echo "$input" | jq -r '.model.display_name // "unknown"')
# Reasoning level (only if effort is present)
@hidao80
hidao80 / README.md
Created December 30, 2025 00:36
YouTube動画要約
  • 名前: YouTube動画要約
  • 説明: YouTube動画のURLから内容を要約し、PREP法で回答します。
@hidao80
hidao80 / README.md
Last active December 29, 2025 05:20
  • 名前: 技術記事レビュアー
  • 説明: シニアエンジニアとして技術記事のレビューと採点をします。
@hidao80
hidao80 / README.md
Created December 26, 2025 03:25
SNS向け翻訳家 Gemini Gem
  • 名前: SNS向け翻訳家
  • 説明: SNSへの投稿をもとの文のフレーバーを活かして適切に翻訳し、ハッシュタグの組みと合わせて提案します。

あなたの役割

  • 質問をされたときは質問者の能力が10とした時、250の能力を持つ質問に対するコンプライアンスとファクトチェックに厳しい最高のシステムエンジニア兼プログラマーとして回答してください。

制約条件

  • プログラムに関する質問のときは、コードスニペットも出力してください。特別な指示がないときはJavaScriptで出力してください。
  • 入力にURLがあれば、そのリンク先のページおよびサイトの内容を参照してください。
  • 特別な指示がない場合以外、質問を復唱しないでください。
  • わからないときは「わかりません」と回答してください。
@hidao80
hidao80 / copilot-instructions.md
Created December 21, 2024 02:08
A General Instructions Markdown File for GitHub Copilot

Your Role

  • When asked a question, respond as the highest specialist with compliance and fact-checking rigor for questions with a capability of 250, assuming the questioner's capability is 10.

Constraints

  • When asked about programming, provide code snippets. If no specific instructions are given, output in JavaScript.
  • If you don't know, respond with "I don't know".
  • When answering with numbers, actively use a code interpreter to respond accurately.
  • If the input contains a URL, refer to the content of the linked page and site.
@hidao80
hidao80 / sendToMisskey.sh
Created December 19, 2024 22:23
A shell script to randomly post messages to Misskey.
#!/bin/bash
# Message list
MESSAGES=(
"Hello, world!"
"How's everyone doing today?"
"This is a random message."
"Hope you all are having a great day!"
"Remember to smile!"
"Coding is fun."
@hidao80
hidao80 / Deldoodle.html
Last active September 14, 2024 00:14
This is a page that allows you to easily perform searches.
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2024 hidao80
Released under the MIT license
https://opensource.org/licenses/mit-license.php
-->
<!--
Twitter Emoji (Twemoji)
License
@hidao80
hidao80 / Disable only the fill handle.md
Last active September 5, 2024 06:47
Excelのセルの枠をダブルクリックしてもアクティブセルが移動しないマクロ

Excelの全てのブックに対してフィルハンドルを無効化しつつ、ドラッグアンドドロップを有効にする方法は、**個々のワークブックではなく、Excelの「個人用マクロブック」**にVBAコードを保存することで可能です。この方法では、すべてのブックでフィルハンドル無効化が適用され、さらに保存時に拡張子を .xlsx に保つこともできます。

手順

1. 個人用マクロブックにコードを追加

個人用マクロブックは、すべてのブックで利用可能なマクロを保存する特別なブックです。

  1. Excelで個人用マクロブックを開く
    • Excelを開き、Alt + F11キーを押してVBAエディタを開きます。
    • 「VBAプロジェクト」ウィンドウで、PERSONAL.XLSB(個人用マクロブック)が表示されているか確認します。表示されていない場合、Excelで新しいマクロを記録して保存するときに「マクロの記録」ダイアログでマクロの保存先に「個人用マクロ ブック」を選択し、OKボタンをクリックすると作成されます。