Skip to content

Instantly share code, notes, and snippets.

View 5ouma's full-sized avatar
🍩
のしょーん

Souma 5ouma

🍩
のしょーん
View GitHub Profile
@5ouma
5ouma / longcat.ts
Last active May 11, 2025 03:50
🐈 Loooooooooooooooong cat
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"),
@5ouma
5ouma / periodic-message.ts
Last active May 9, 2025 12:42
🎪 Compose periodical messages with Deno Cron
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"),
@5ouma
5ouma / labels.json
Last active March 23, 2025 11:05
🏷️ GitHub Label Configuration
[
{
"name": "🧨 Breaking Change",
"color": "d83500",
"description": "Includes breaking changes",
"aliases": ["breaking", "breaking-change", "Type: Breaking Change"]
},
{
"name": "🎉 New Feature",
"color": "fff259",
@5ouma
5ouma / macos_keyboard_shortcuts_exporter_importer.php
Last active March 1, 2025 08:01 — forked from miclf/macos_keyboard_shortcuts_exporter_importer.php
⌨️ A small tool to automatically export and import custom macOS keyboard shortcuts
#!/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'])) {