This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { join } from "jsr:@std/path"; | |
import { Hono } from "jsr:@hono/hono"; | |
import { cache } from "jsr:@hono/hono/cache"; | |
import { logger } from "jsr:@hono/hono/logger"; | |
import { createCanvas, loadImage } from "jsr:@gfx/canvas-wasm"; | |
const baseImageUrl = | |
"https://raw.githubusercontent.com/mattn/longcat/refs/heads/master/public/themes/longcat"; | |
const imageUrls = { | |
head: join(baseImageUrl, "data01.png"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { api as Misskey } from "npm:misskey-js"; | |
type Meta = { | |
misskey: Readonly<{ origin: string; credential: string }>; | |
}; | |
const getMeta = (): Meta => { | |
const meta = { | |
misskey: { | |
origin: Deno.env.get("MISSKEY_ORIGIN"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "🧨 Breaking Change", | |
"color": "d83500", | |
"description": "Includes breaking changes", | |
"aliases": ["breaking", "breaking-change", "Type: Breaking Change"] | |
}, | |
{ | |
"name": "🎉 New Feature", | |
"color": "fff259", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
// Determine which command has been called. | |
$cmd = (!empty($argv[1])) ? strtolower($argv[1]) : null; | |
// If an invalid number of arguments has been passed (or if no argument | |
// was given at all), display help information. | |
if ($argc < 2 || $argc > 3 || !in_array($cmd, ['save', 'load'])) { |