This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>개수다 로고 생성기</title> | |
<style> | |
/* RESET */ |
This file contains 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
import { promises as fs } from 'node:fs'; | |
import { join } from 'node:path'; | |
const MODPACK_VERSION = ''; | |
const MODPACK_AUTHOR = ''; | |
const MODPACK_NAME = ''; | |
const mmcPack = JSON.parse( | |
await fs.readFile('mmc-pack.json', { encoding: 'utf8' }) | |
); |
This file contains 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
/* | |
* y = f(x) 꼴의 그래프를 그리는 프로그램입니다. | |
* 이 파일을 빌드하기 위해서는 gdi32가 필요합니다. | |
* Dev C++ 기준 | |
* 1. 파일 > 새로 만들기 > 프로젝트 에서 Console Application을 만듭니다. | |
* 2. 해당 프로젝트가 열린 상태에서, 프로젝트 > 프로젝트 옵션을 열고, 매개변수들 탭에서 Linker 칸에 "-lgdi32" (따옴표 안의 것)을 넣습니다. | |
* | |
* 사용 방법 | |
* 1. y = f(x)의 그래프에서 f(x)에 해당하는 부분을 입력합니다. | |
* 이 때, 연산자 우선순위는 적용되지 않으며 왼쪽부터 결합됩니다 |
This file contains 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
import { promises as fs, constants as FS } from 'node:fs'; | |
import { exec } from 'node:child_process'; | |
import { promisify } from 'node:util'; | |
import path from 'node:path'; | |
const ColorRegex = /(?:\\([fFbB])([0-9]))|(\\0)/g; | |
function echo(templates, ...params) { | |
console.log( | |
String.raw(templates, ...params) | |
.replaceAll(ColorRegex, (_, fb, id, zero) => |
This file contains 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
const BoundType = Object.freeze({ | |
Included: 'bound_type::included', | |
Excluded: 'bound_type::excluded', | |
}); | |
class Bound { | |
constructor(type, value) { | |
this.type = type; | |
this.value = value; | |
} |
This file contains 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
type TailId = -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27; | |
function tailIdOf(word: string): TailId { | |
if (word.length === 0) { | |
return -1; | |
} | |
const last = word[word.length - 1]; | |
if (last < '가' || '힣' < last) { | |
return -1; | |
} |
This file contains 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
(() => { | |
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, |
This file contains 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
<!DOCTYPE html> | |
<html lang="ko"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Preact Quickstart</title> | |
</head> | |
<body> | |
<script type="module"> | |
import { html, render, useState, useEffect } from 'https://cdn.skypack.dev/htm@3.0.4/preact/standalone'; |
This file contains 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
type NoConflict< | |
A extends Record<string | symbol, unknown>, | |
B extends string | number | symbol | |
> = { [K in keyof A]: K extends B ? never : A[K] }; | |
type PropsUnion<A> = { [K in keyof A]: A[K] }[keyof A]; | |
export function withMethods< | |
Origin extends Record<string | symbol, unknown>, | |
Methods extends Record<string | symbol, unknown> |
This file contains 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
type TailId = -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27; | |
function tailIdOf(word: string): TailId { | |
if (word.length === 0) { | |
return -1; | |
} | |
const last = word[word.length - 1]; | |
if (last < '가' || '힣' < last) { | |
return -1; | |
} |
NewerOlder