Skip to content

Instantly share code, notes, and snippets.

<?php
$title = "";
$N = 100*3; # multiplying "3" because "あ" is 3 bytes in utf-8
# $N = 74;
for ($i=0; $i<$N; $i++) {
$title = $title . "a";
}
?>
<!DOCTYPE html>
@aoirint
aoirint / README.md
Last active April 12, 2024 20:59
Wine in Docker + 棒読みちゃん (Ubuntu)
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 / nicodark.user.css
Last active December 12, 2023 10:50
ニコニコ動画・生放送の視聴ページをダークテーマ化するユーザーCSS(Stylusを想定。コントラスト等を考慮して作成されたものではありません。ポップアップ等には非対応です)
@-moz-document url-prefix("https://live.nicovideo.jp/watch") {
#watchPage
{
background-color: #333;
color: #ccc;
}
.___program-information-header-area___\+Y3b5,
.___program-information-area___9OIq6,
.___program-summary___uo308,
@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}]
@aoirint
aoirint / devtool_niconico_user_live_program_list.js
Last active October 24, 2023 02:36
ニコニコ動画のユーザー別生放送一覧(/live_programs)から動画ID・開始時間・終了時間・タイトルをTSVとして抽出するDevTools用スクリプト(2023-10-24版)
s = ""
for (const programCardElement of [...document.querySelectorAll(".program-card")]) {
// ライブ公開を除外
if (programCardElement.querySelector(".video-premiere-label") != null) continue;
s += [
new URL(programCardElement.querySelector(".program-title a").href).pathname.slice(7),
programCardElement.querySelector(".start-at").getAttribute("datetime").replace(" ", "T") + "+09:00",
programCardElement.querySelector(".end-at").getAttribute("datetime").replace(" ", "T") + "+09:00",
programCardElement.querySelector(".program-title").innerText,
@aoirint
aoirint / 起動引数と環境変数.md
Last active October 8, 2023 07:37
VOICEVOX ENGINEの起動引数と環境変数に関するドキュメントのたたき台(docs/起動引数と環境変数.md)