Skip to content

Instantly share code, notes, and snippets.

View RanolP's full-sized avatar
๐Ÿค“
Otaku save the world

RanolP RanolP

๐Ÿค“
Otaku save the world
View GitHub Profile
@lifthrasiir
lifthrasiir / numeric-tzid.md
Last active February 3, 2025 01:32
Proposal for stable short identifier (or two) of time zones

This proposal was originally written in 2018 as a concrete proposal for numeric time zone identifiers. I'm still not sure if this has a merit or not, but for the historical perspective, I reproduce the (incomplete) proposal in verbatim here. --Kang Seonghoon


[...]

The needs for the short and stable identifier are most importantly observed by the case of the Unicode CLDR project. CLDR required a stable identifier for the locales, which requires a stable identifier for the time zones. [...]

Short Identifiers

@zengxinhui
zengxinhui / convert2arch_arm.sh
Last active March 1, 2025 19:48
Replace Oracle Cloud Linux with Arch Linux ARM remotely
[02/25/2025]
Refs:
1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/aarch64/alpine-virt-3.21.3-aarch64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
5. https://archlinuxarm.org/platforms/armv8/generic
See also:
@kiwiyou
kiwiyou / baeggro.js
Last active January 14, 2022 13:36
Baekjoon Online Judge Status Offender
// ==UserScript==
// @name Baeggro - BOJ Result Offender
// @match https://www.acmicpc.net/status*
// @grant none
// @version 4.0
// @author kiwiyou <[email protected]>, RanolP <[email protected]>
// @downloadURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js
// @updateURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js
// ==/UserScript==
template<typename T, const T& Combine(const T&, const T&)>
class segment_tree {
darray<T> v;
T default_value;
T combine_considering_default(const T& left_value, const T& right_value) const {
if (left_value == default_value) {
return right_value;
} else if (right_value == default_value) {
return left_value;
} else {
@RanolP
RanolP / bypass-original.js
Last active January 2, 2022 19:49
Bypass Screen Share Restriction in Guild on Discord.
(() => {
const data = [
[],
{
run: (_ignored1, _ignored2, { c: result }) => {
for (const field of Object.getOwnPropertyNames(result)) {
const exported = result[field].exports;
if (exported && exported.isDeveloper === false) {
Object.defineProperty(exported, "isDeveloper", {
value: true,
@RanolP
RanolP / ๊ฐœ๋ฐœ์ž ์ˆ˜๋‹ค๋ฐฉ.aheui
Created July 9, 2018 10:37
โ€˜2018.07.11. ๊ฐœ๋ฐœ์ž ์ˆ˜๋‹ค๋ฐฉ: ํ…”๋ ˆ๊ทธ๋žจ ์—๋””์…˜ ์ œ 1ํšŒ ๊ฐœ์ฒœ์ ˆ ๊ฒฝ์ถ•!โ€™์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
๊ฐœ๋ฐ˜๋ญ‰๋ฐ˜๋ถ“๋ฐช๋‘๋นฅ๋ถ–๋น ๋ญ๋ฐ ๋ญ‰๋ฐ•๋ˆ„๋ง๋ญ๋”ฐ๋ฟŒ์‚ญ๋ฟŒ๋ฐช๋ถ…ํŒŒํˆฌ๋ฐฃ๋šœํƒ€๋Œœ๋ŽŒ๋ญ๋ทบ๋‹ค๋‘ํƒ€๋‘๋ฐข๋‘๋ฐ™๋šœ๋นฅํ‘ธ๋‹ค๋ฟ‘๋น ๋ฟŒ๋นฅ๋ถ„๋ฐ›๋šœ์‚ฝ์‘ค๋ฐช๋ถˆ๋นฅ๋‘๋ฐ›ํˆฌ๋ฐง๋ˆ„
๋ฐœ๊พ”๋ฐ”๋ชฝ๋‚˜๋ชฝ๋ง๋ด€ํƒ€๋ฝ€๋ฐ”๋ชฝ๋งฃ๋ณธ๋น ๋ชฝ๋ฐค๋ดƒ์‹น๋ซƒ๋น ์†Œ๋”ฐ๋ฝ…๋นฅ๋ณผํƒ€๋น ์‘บ๋ดƒ๋ฐ ๋ฝ…์†Œ๋‘๋ดŽ๋ญ๋˜๋‘๋ณป๋‘๋ดƒ์‘ต๋ดƒ๋ถ–๋ฝ€๋ฟŒํ† ๋ถ…๋˜ํˆฌ๋„์ˆ˜์†Œ๋šœ๋„ํ‘ธํ† ๋ญ๋ณธ๋ญ‰
์ž๋‘๋ณ€๋ฒˆ๋ป•๋– ๋ฒŒ๋ฒš๋ฉ“๋”๋– ๋ฒ“๋ฒ๋”๋จธํผ๋ป•๋”๋ป•๋ฒ’๋ป•๋”๋ฒ‡๋ป•๋– ๋ฒ๋ฒˆ๋ฉ“์„œ๋ณปํผ๋‘๋ซƒ๋ถˆํฌ๋‘๋ด€๋ญ๋ฝ…๋ญ๋ฝ…ํˆฌ๋ซƒ๋ถˆ์†๋ญ๋ณพ๋šœ์ฉ๋ญ๋ฝ…ํˆฌ๋ซƒ๋ฟ‘๋…ธํˆฌ๋„๋ถ„์†Œ๋ถ‹
์ˆ˜๋บ๋ฆฌ๋ฐช๋ฐค๋”ฐ๋‹ค๋งฃ๋ฐชํƒ€๋นฅ๋ฐ ๋นฅํŒŒํƒ€๋ฐ˜๋ฐง๋‚˜ํƒ€ํƒ€์‚ญ๋งฃ์‚ฌ๋งฃ๋ฐขํƒ€๋นฅ๋งฃ๋ฐœ๋‹ค๋ฝ…๋งฃ์†ํƒ€๋ฝ…๋นฅ๋ณธ๋ฐฆํ† ๋ฐฆ๋„๋ฐžํ† ๋”ฐ๋„์‚ฌ๋ซƒ๋น ๋ฝ€๋ฐฆ๋„๋งฃ์†๋ฐ˜๋ด‡๋ฐ ๋ฝ…์‚ญ๋ซƒ๋ฟŒ
๋‹ค์ดํ†ต๊ฐํ•˜๋งŒ์„ธ์‚ผ์ฐฝํ•ด๋ฉ“๋ถ๋ฒˆ๋ถ๋ฉ“๋šœ๋ฒ–๋‘๋ป•์ˆ™๋ฉ“๋ถŠ๋ฒˆ๋ถ‡์ฉํˆฌํผํˆฌ๋„ˆ๋šœ๋ฒ“์ˆ˜๋ฉ“๋‘๋ฒˆํ‘ธ๋ป•ํ‘ธํ„ฐ๋‘๋ฒˆ๋ถˆ๋ฒš๋‘๋ฒ˜๋ฟ‘๋ฒ๋ฟ‘๋”๋ฟ‘๋ฒ‘์ˆฎ๋ฉ“ํˆฌ๋– ๋ถ๋ฒˆ๋ฟŒ๋– ๋ถ
๋ฐฉ๋งํฌ๋ด์•„ํ•˜๋Š”๋‚œ๋กœ๋‹น๋„๋„ˆ๋˜๋ฒ”ํ† ๋”๋ด†๋ฒŒํ† ๋ฒŒํ† ๋”ํ† ๋„ˆ๋ฝ€ํผ๋ฝ…ํ„ฐ๋ด‡๋ฒˆ๋ณป๋ป์†๋ฉ“ํ† ๋จธ๋ณพํ„ฐํฌ๋ป•๋ฝ…๋– ๋ซƒ๋”ํ† ๋”ํ† ํผ๋ณธ๋”๋ซƒ๋ป์†๋ฉ“๋ด†๋”๋„๋ป•๋˜๋”
aecidiaceae ๋งˆ์น˜ํž˜์ฐจ๋งˆ
aeviternal ๋งˆํ”ผ๋ผ๋„ˆ๋ฉฐ
alangiaceae ๋ฉฐ๋จธ์‹ฌ์ฐจ๋งˆ
aldermanate ๋ฉฐํ•˜๋А๋ฉˆ๋ผ
aldermancy ๋ฉฐํ•˜๋А๋จธ์ฑ„
aldermanry ๋ฉฐํ•˜๋А๋จธ๋‚ด
alternance ๋ฉฐ๋ผ๋„ˆ๋จธ์ฐจ
alternative ๋ฉฐ๋ผ๋„˜๋ฆฌํŒŒ
alternatives ๋ฉฐ๋ผ๋„˜๋ฆฌํŒก
alternativity ๋ฉฐ๋ผ๋„˜๋ฆฌํ”ผ๋ž˜
@tryashtar
tryashtar / colors.mcfunction
Last active November 13, 2017 10:42
Commands used to generate RGB values for armor, etc.
# fake players beginning with '#' are literal values, the rest are as follows:
# h: color hue, between 0 and 1536
# r: red color component
# g: green color component
# b: blue color component
# speed: speed of the color change, in hue increments per tick
# temp: used for a temporary calculation
# rgb: the final number representing the rgb in its entirety
# move on to the next hue
@20chan
20chan / contract.py
Created July 3, 2017 06:25
The Fun of Reinvention ์ตœ์ข…
_contracts = {}
class Contract:
@classmethod
def __init_subclass__(cls):
_contracts[cls.__name__] = cls
def __set__(self, instance, value):
self.check(value)
@elizarov
elizarov / MultiShotEnumeration.kt
Created May 3, 2017 09:01
Showcase for Kotlin multishot continuations
import kotlin.coroutines.experimental.*
import kotlin.coroutines.experimental.intrinsics.*
fun main(args: Array<String>) {
enumerate {
if (flip("A")) {
if (flip("B")) 1 else 2
} else {
if (flip("C")) 3 else if (flip("D")) 4 else 5
}