Mono Repo では package や service をディレクトリとして表現するので、特定のディレクトリが変更された時だけ実行したい Workflow があると思います。 典型的にはテストやビルドでしょう。
foo ディレクトリ内のファイルに変更があったときのみトリガーするには以下のうに指定します。
| # yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.1 | |
| # Reference: https://github.com/microsoft/winget-cli-restsource#building-the-client | |
| properties: | |
| resources: | |
| - resource: DeveloperMode | |
| directives: | |
| description: Enable Developer Mode | |
| module: Microsoft.Windows.DSC | |
| settings: | |
| Ensure: Present |
Mono Repo では package や service をディレクトリとして表現するので、特定のディレクトリが変更された時だけ実行したい Workflow があると思います。 典型的にはテストやビルドでしょう。
foo ディレクトリ内のファイルに変更があったときのみトリガーするには以下のうに指定します。
| import { McpAgent } from "agents/mcp"; | |
| import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; | |
| import { z } from "zod"; | |
| import { GoogleGenerativeAI } from "@google/generative-ai"; | |
| import { Readability } from '@mozilla/readability'; | |
| import { parseHTML } from 'linkedom'; | |
| type Env = { | |
| MyMCP: DurableObjectNamespace<MyMCP>; | |
| GEMINI_API_KEY: string; |
| format = """ | |
| [\uE0B6](fg:#1C4961)[$directory](bg:#1C4961)[\uE0B0](fg:#1C4961 bg:#2F79A1)$git_branch[\uE0B0](fg:#2F79A1 bg:#3A95C7)$git_status[\uE0B0](#3A95C7 bg:#40A9E0)$time[\uE0B0](#40A9E0 bg:none) $all$character """ | |
| add_newline = true | |
| [directory] | |
| style = "bg:#1C4961 fg:white" | |
| [git_branch] | |
| format = "[ $symbol$branch ]($style)" |
| /** | |
| * My Portable RAG | |
| * $ pnpm add sqlite-vec @ai-sdk/google ai | |
| * SQLite Vector Search + Google AI Embeddings | |
| * | |
| * Required environment variables: | |
| * GOOGLE_GENERATIVE_AI_API_KEY=your-api-key | |
| * | |
| * Usage: | |
| * # Index text content |
この資料は以下のイベントの登壇用の殴り書きです
https://hack-at-delta.connpass.com/event/350588/
今までの資料を引用して話すので、この資料はアウトラインです。
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
いつもいつもいつもRe:VIEWの記法に悩んでぐぐってしまう皆さんへ送るチートシートです。
| 名称 | ルール | 概要・備考 |
|---|---|---|
| 段落 | 1行以上の空行をはさむと別の段落になる | HTMLでいうP |
| 見出し | =ではじまる行 | =の個数で、章・節・項・段という感じで増えます。HTMLで言うH1, H2, H3, H4, H5 |
| # | |
| # paste64 -- OSC 52 (PASTE64) を利用した端末エミュレータ経由でのクリップボード書き込み | |
| # | |
| # 使い方: | |
| # % ls | paste64 | |
| # ls の結果をクリップボードに書き込む。 | |
| # | |
| # % cat hoge | nkf -s | paste64 | |
| # ファイル hoge の内容(日本語を含む)をクリップボードに書き込む。 | |
| # 漢字コードの扱いは端末依存。 |