Skip to content

Instantly share code, notes, and snippets.

View ayame113's full-sized avatar
😓
I'm still learning English. lol

ayame113 (val440) ayame113

😓
I'm still learning English. lol
View GitHub Profile
@ayame113
ayame113 / main.ts
Created October 6, 2025 01:53
schema based hono example
import type { Context, Hono } from "hono";
import type { z } from "zod/v4";
const schema: unique symbol = Symbol("[[schema]]");
// for schema file
interface DefineOperationOptions {
method: "GET" | "POST";
path: string;
@ayame113
ayame113 / ChartJsChart.tsx
Last active June 5, 2023 11:52
Fresh + Chart.js client-side rendering
export * from "https://esm.sh/[email protected]";
import { Chart } from "https://esm.sh/[email protected]";
import { useEffect, useRef } from "preact/hooks";
import { JSX } from "preact";
interface ChartJsChartProps extends JSX.HTMLAttributes<HTMLCanvasElement> {
config: ConstructorParameters<typeof Chart>[1];
}
/**
@ayame113
ayame113 / release_prefix.ts
Created July 14, 2022 01:58
リリースノートの中の `feat` や `fix` の数をカウントしてcsvにするやつ
const RELEASE_URL =
"https://raw.githubusercontent.com/denoland/deno/main/Releases.md";
const response = await fetch(RELEASE_URL);
const markdown = await response.text();
const lines = markdown.split("\n");
const prefixEscape: Record<string, string> = {
"add": "add",
"added": "add",
"adds": "add",
あああああ