Skip to content

Instantly share code, notes, and snippets.

View tooruu's full-sized avatar
👻
Ignorance is truly bliss.

tooru tooruu

👻
Ignorance is truly bliss.
View GitHub Profile
@tooruu
tooruu / Npp.pyi
Last active July 9, 2024 19:22
Notepad++ PythonScript type stubs
# ruff: noqa: N802, N803, A002
import re
from collections.abc import Callable
from enum import IntEnum, IntFlag
from typing import ClassVar, Literal, overload
from _typeshed import SupportsWrite
type _SearchCallback = Callable[[NppReMatch], None]
type _ReplaceCallback = Callable[[NppReMatch], _Text] | _Text
@tooruu
tooruu / bench.php
Last active March 18, 2024 14:25
Number conversion benchmark and validator
<?php
declare(strict_types=1);
abstract readonly class BtcConverterBenchmark
{
abstract protected function sat2Btc(int $num): string;
abstract protected function btc2Sat(string $num): int;
@tooruu
tooruu / MarriageBooster.plugin.js
Last active December 28, 2023 19:52
Gain marriage XP in Holo bot.
/**
* @name MarriageBooster
* @author tooru
* @description Gain marriage XP in Holo bot.
* @version 2.3
*/
let timeoutId
const configurables = {
token: "Token",
sessionId: "Session ID",
@tooruu
tooruu / cloudSettings
Last active August 18, 2020 07:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-13T17:42:07.907Z","extensionVersion":"v3.4.3"}