Skip to content

Instantly share code, notes, and snippets.

View 5ouma's full-sized avatar
🛟

Souma 5ouma

🛟
View GitHub Profile
@5ouma
5ouma / wst.ts
Last active July 12, 2025 04:31
⏰ Wakeup Standard Time calculator
import { Hono } from "jsr:@hono/hono";
import { logger } from "jsr:@hono/hono/logger";
import { vValidator } from "jsr:@hono/valibot-validator";
import { STATUS_CODE } from "jsr:@std/http/status";
import {
object,
pipe,
safeParse,
string,
transform,
@5ouma
5ouma / longcat.ts
Last active May 21, 2025 23:47
🐈 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 June 10, 2025 05:15
🏷️ GitHub Label Configuration
[
{
"name": "🧨 Breaking Change",
"color": "d83500",
"description": "Includes breaking changes",
"aliases": ["breaking", "breaking-change", "Type: Breaking Change", "tagpr:major"]
},
{
"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'])) {