Skip to content

Instantly share code, notes, and snippets.

View SkyLightQP's full-sized avatar
🪖
~2025

Daegyeom Ha SkyLightQP

🪖
~2025
View GitHub Profile
// ==UserScript==
// @name ASTx2 Emulator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author @BawAppie
// @match https://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=ahnlab.com
// @grant none
// ==/UserScript==
@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 <kiwiyou.dev@gmail.com>, RanolP <public.ranolp@gmail.com>
// @downloadURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js
// @updateURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js
// ==/UserScript==
@kiwiyou
kiwiyou / Cargo.toml
Created February 26, 2020 10:56
UUID Generator without collision
[package]
name = "ugen"
version = "0.1.0"
authors = ["kiwiyou <kiwiyou.dev@gmail.com>"]
edition = "2018"
[dependencies]
rand = "0.7"
clap = { git = "https://github.com/clap-rs/clap/" }
@BasixKOR
BasixKOR / gcd.rs
Last active February 23, 2020 09:49
Euclidean algorithm
/// Recursive
fn gcd<T>(a: T, b: T) -> T where T: std::ops::Rem<Output = T> + Eq + From<u8> + Copy {
if b == T::from(0u8) {
a
} else {
gcd(b, a % b)
}
}
/// Iterated
@BasixKOR
BasixKOR / README.md
Last active February 15, 2020 07:55
Handling codepage

Normalizing Codepage in Node.js

Only tested in CP-949.

Note

  • This will only work on the codepages below.
    • Windows codepages: 874, 1250-1258
    • IBM codepages: 437, 737, 775, 808, 850, 852, 855-858, 860-866, 869, 922, 1046, 1124, 1125, 1129, 1133, 1161-116
  • Multi-byte: 932, 936, 949, 950
@RanolP
RanolP / rust_ps_input.rs
Last active July 10, 2020 04:33
Easier input processing in Rust when Problem Solving
//! This is free and unencumbered software released into the public domain.
//!
//! Anyone is free to copy, modify, publish, use, compile, sell, or
//! distribute this software, either in source code form or as a compiled
//! binary, for any purpose, commercial or non-commercial, and by any
//! means.
//!
//! In jurisdictions that recognize copyright laws, the author or authors
//! of this software dedicate any and all copyright interest in the
//! software to the public domain. We make this dedication for the benefit
@PashCracken
PashCracken / WSL-with-zsh-and-powerlevel9k.png
Last active September 4, 2023 07:28
WSL, zsh and Powerlevel10k
WSL-with-zsh-and-powerlevel9k.png
const int mod = 998244353;
using lint = long long;
lint ipow(lint x, lint p){
lint ret = 1, piv = x;
while(p){
if(p & 1) ret = ret * piv % mod;
piv = piv * piv % mod;
p >>= 1;
}
return ret;
setInterval((_ = Date.now() / 30 % 360) =>
console.clear() || console.log('%c[Warning]', `
font-size: 500%;
font-weight: bold;
color: hsl(${_}, 100%, 90%);
background-color: hsl(${_}, 100%, 30%);
text-shadow: .08em .08em hsl(${_}, 100%, 20%)`), 75)
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 30, 2024 00:35
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites