Skip to content

Instantly share code, notes, and snippets.

View unta1337's full-sized avatar
πŸ˜‚
I will refactor this later

S.Y. Kim unta1337

πŸ˜‚
I will refactor this later
View GitHub Profile
@unta1337
unta1337 / iris_keymap.json
Last active July 7, 2025 10:29
iris rev7 keymap
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "keebio/iris/rev7",
"keymap": "keebio_iris_rev7_layout_2025-06-25",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
@unta1337
unta1337 / README.md
Last active March 30, 2025 08:52
μœˆλ„μš° 터미널/fastfetch WAλ₯Ό μ˜λŠ” ν•œλ³„μ΄ ν…Œλ§ˆ
@unta1337
unta1337 / README.md
Last active March 30, 2025 14:13
μœˆλ„μš° 터미널/fastfetch 가을을 κΈ°λ‹€λ¦¬λŠ” ν•œλ³„μ΄ ν…Œλ§ˆ
@unta1337
unta1337 / monotone_chain.c
Last active March 14, 2025 07:03
블둝 껍질 λͺ¨λ…Έν†€ 체인 C κ΅¬ν˜„
#define number_t long long
#define number_fmt "%lld"
typedef struct {
number_t x;
number_t y;
} pos_t;
pos_t pos_sub(const pos_t p, const pos_t q) {
return (pos_t){ .x = p.x - q.x, .y = p.y - q.y };
@unta1337
unta1337 / general_approach.rb
Last active October 31, 2024 01:53
λ£¨λΉ„λ‘œ μž‘μ„±ν•œ 콰인
s = "s = \"?\"\n\ns.chars { |c|\n if c.ord == 63 then\n s.chars { |d|\n if d == \"\\n\" then\n print \"\\\\n\"\n elsif d == \"\\\"\" then\n print \"\\\\\\\"\"\n elsif d == \"\\\\\" then\n print \"\\\\\\\\\"\n else\n print d\n end\n }\n else\n print c\n end\n}\n"
s.chars { |c|
if c.ord == 63 then
s.chars { |d|
if d == "\n" then
print "\\n"
elsif d == "\"" then
print "\\\""
elsif d == "\\" then
@unta1337
unta1337 / priority_queue.rb
Last active October 29, 2024 06:20
λ£¨λΉ„λ‘œ κ΅¬ν˜„ν•œ κ°„λ‹¨ν•œ μš°μ„ μˆœμœ„ 큐
class PriorityQueue
def initialize &comp
@data = []
@cursor = 0
@comp = if comp.nil? then Proc.new { |p, q| p < q } else comp end
end
def empty?
@cursor == 0
end
@unta1337
unta1337 / yap.c
Last active October 5, 2024 11:35
κ°„λ‹¨ν•œ ν…μŠ€νŠΈ 병합 ν”„λ‘œκ·Έλž¨.
// yap: yet another preprocessor
// `$`λ₯Ό μ΄μš©ν•΄ 병합할 νŒŒμΌμ„ μ§€μ •ν•  수 μžˆλ‹€.
// 기본적으둜 μ „μ²˜λ¦¬κΈ°μ™€ λΉ„μŠ·ν•˜κ²Œ λ™μž‘.
#include <stdio.h>
#include <string.h>
#include <errno.h>
void cat_source(char* source_path) {
FILE* source = fopen(source_path, "r");
@unta1337
unta1337 / priority_queue.h
Created October 5, 2024 09:03
맀크둜λ₯Ό μ΄μš©ν•œ μš°μ„  μˆœμœ„ 큐 κ΅¬ν˜„.
#if 0
// μš°μ„  μˆœμœ„ 큐에 λ“€μ–΄κ°ˆ μžλ£Œν˜•μ„ μž…λ§›μ— 맞게 κΎΈλ©°μ€€ ν›„ λŒ€μ‘ν•˜λŠ” 비ꡐ ν•¨μˆ˜λ₯Ό ν•¨κ»˜ λ„£μ–΄μ£Όλ©΄ λœλ‹€.
// μžλ£Œν˜•μ΄ κΌ­ ꡬ쑰체일 ν•„μš”λŠ” μ—†λ‹€.
typedef struct {
int value;
} elem;
typedef struct {
elem* data;
@unta1337
unta1337 / script.js
Created September 20, 2024 11:08
λ°±μ€€ 맞힌 μ‚¬λžŒ/μ •λ‹΅ λΉ„μœ¨ 숨기기
// ==UserScript==
// @name [λ°±μ€€] 맞힌 μ‚¬λžŒ/μ •λ‹΅ λΉ„μœ¨ 숨기기
// @namespace http://tampermonkey.net/
// @version 2024-09-20
// @description try to take over the world!
// @author You
// @match https://www.acmicpc.net/problem/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=acmicpc.net
// @grant none
// ==/UserScript==
@unta1337
unta1337 / parse_ac.c
Last active July 8, 2024 02:39
κ°„λ‹¨ν•œ ν•œκ΅­κΈ°μˆ κ΅μœ‘λŒ€ν•™κ΅ μ €μ§€ ac 파일 νŒŒμ„œ
/* WARN: windows not supported yet */
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>