Skip to content

Instantly share code, notes, and snippets.

@aoirint
aoirint / clock.html
Last active June 6, 2026 12:53
UNLICENSE (Public domain). Font: https://github.com/rbanffy/3270font
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<style>
@font-face {
font-family: "ClockFont";
src: url("./assets/3270-Regular.ttf") format("truetype");
}
"""
# Mono System.Random Compatibility Implementation
This implementation targets compatibility with the historical
System.Random implementation used by Mono-based runtimes.
## Implementation Reference
This implementation is a Python port of the .NET Framework 4.6.2
Reference Source implementation of System.Random.
@aoirint
aoirint / Dockerfile
Last active April 19, 2025 03:54
uvを使ったPythonプロジェクトのDockerイメージ構築例
# License: CC0-1.0
# syntax=docker/dockerfile:1.14
ARG BASE_IMAGE="ubuntu:22.04"
# Pythonバイナリをダウンロードするステージ
FROM "${BASE_IMAGE}" AS download-python-stage
# ダウンロードに必要なwgetとルート証明書をインストール
ARG DEBIAN_FRONTEND="noninteractive"
@aoirint
aoirint / lint.yml
Last active December 7, 2024 05:12
Poetry + Ruff + Mypy Lint CI Workflow
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
@aoirint
aoirint / Program.cs
Last active November 7, 2024 14:49
Lethal Company v68 Meteor Shower seeds at the start of day
bool CheckMeteorShowerChance(int seed) {
var meteorShowerChance = 7;
var random = new Random(seed + 28);
return random.Next(0, 1000) < meteorShowerChance;
}
bool CheckMeteorShowerTime(int seed, int minTime, int maxTime) {
var random = new Random(seed + 28);
random.Next(0, 1000);
person_index person_name gifter_person_index is_primary game_name game_url
1 なりす 20 NIPPON MARATHON https://store.steampowered.com/app/746940/Nippon_Marathon/
1 なりす 20 Untitled Goose Game 〜いたずらガチョウがやって来た! https://store.steampowered.com/app/837470/Untitled_Goose_Game/
1 なりす 20 ロック・オブ・エイジス: メイク&ブレイク https://store.steampowered.com/app/1101360/_/
1 なりす 20 毛笔模拟器 / Chinese Brush Simulator https://store.steampowered.com/app/1222160/__Chinese_Brush_Simulator/
1 なりす 20 Fat Prisoner Simulator https://store.steampowered.com/app/1037560/Fat_Prisoner_Simulator/
1 なりす 20 LOST EGG https://store.steampowered.com/app/1098510/LOST_EGG/
1 なりす 20 かぞえ飯 https://store.steampowered.com/app/2500760/_/
1 なりす 20 Meat Beating: No More Horny https://store.steampowered.com/app/1583390/Meat_Beating_No_More_Horny/
2 tlozoote 1 x The Henry Stickmin Collection https://store.steampowered.com/app/1089980/The_Henry_Stickmin_Collection/
from pathlib import Path
import httpx
import time
import logging
from logging import getLogger
logger = getLogger(__name__)
def main() -> None:
// ==UserScript==
// @name niconico_live_user_live_program_user_script
// @namespace Violentmonkey Scripts
// @match https://live.nicovideo.jp/embed/broadcast-history
// @grant none
// @version 0.1.0
// @author aoirint
// @description 2023-12-08T00:07:54+09:00
// ==/UserScript==
@aoirint
aoirint / niconico_point_book_user_script.user.js
Last active December 7, 2023 15:07
ニコニコポイント通帳をTSV出力するUserScript
// ==UserScript==
// @name niconico_point_book_user_script
// @namespace Violentmonkey Scripts
// @match https://point.nicovideo.jp/index/bank/
// @grant none
// @version 0.1.0
// @author aoirint
// @description 2023-12-07T23:37:39+09:00
// ==/UserScript==
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\ClassIndex\{A9B7A1B9-0671-405C-95F1-E0612CB4CE7E}]