This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if 0 | |
// μ°μ μμ νμ λ€μ΄κ° μλ£νμ μ λ§μ λ§κ² κΎΈλ©°μ€ ν λμνλ λΉκ΅ ν¨μλ₯Ό ν¨κ» λ£μ΄μ£Όλ©΄ λλ€. | |
// μλ£νμ΄ κΌ κ΅¬μ‘°μ²΄μΌ νμλ μλ€. | |
typedef struct { | |
int value; | |
} elem; | |
typedef struct { | |
elem* data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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> |
NewerOlder