function asdf() { console.log("make me BOLD!"); console.log("make me the "); console.log("make mediff...no, different!"); console.log("just press Alt + F4 to shut down this"); }
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
/* | |
Env generator | |
This script is located at "scripts/envGenerator.js" and reads the env file ".env.local" in the top-level path to create the file "src/@types/env.ts". | |
You will need to modify the paths to the files you want to read or create yourself. | |
이 스크립트는 "scripts/envGenerator.js"에 위치하여 최상위 경로의 ".env.local" 환경변수 파일을 읽어 "src/@types/env.ts" 파일을 생성합니다. | |
읽거나 만들 파일의 경로는 직접 수정해야 합니다. | |
*/ | |
/* |
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
// @ts-check | |
const BITS = 8; | |
function encode(...nums: number[] ) { | |
let num = 0; | |
for (let i = 0; i < nums.length; i++) { | |
num |= nums[i] << (i * BITS); | |
} | |
return num; |
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
function saveLocalStorage() { | |
const newPlaces = Object.fromEntries( | |
Array.from(document.getElementsByClassName("result")).map((elem) => [ | |
elem.getAttribute("href"), | |
Array.from(elem.children).map((e) => e.innerText), | |
]) | |
); | |
const places = JSON.parse(localStorage.getItem("places") ?? "{}"); | |
Object.assign(places, newPlaces); | |
localStorage.setItem("places", JSON.stringify(places)); |
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
#include "pitches.h" | |
#define DYNAMIC_RESIST_PIN A0 | |
#define SPEAKER_PIN 13 | |
const int melody[] = { | |
NOTE_G4, NOTE_G4, NOTE_A4, NOTE_G4, NOTE_G4, NOTE_G4, NOTE_E4, 0, | |
NOTE_G4, NOTE_G4, NOTE_E4, NOTE_E4, NOTE_D4, 0, | |
NOTE_G4, NOTE_G4, NOTE_A4, NOTE_A4, NOTE_G4, NOTE_G4, NOTE_E4, 0, | |
NOTE_G4, NOTE_E4, NOTE_D4, NOTE_E4, NOTE_C4, 0 | |
}; |
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
// @ts-check | |
/** | |
* @typedef Lesson | |
* @property category {"교필" | "전필" | "교선" | "전선"} | |
* @property id {string} | |
* @property name {string} | |
* @property grade {string} | |
* @property point {string} | |
* @property time {string} |
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
#include <stdio.h> | |
#include <stdbool.h> | |
typedef enum { | |
A, B, C, F | |
} Rank; | |
char rankAsChar[4] = "ABCF"; | |
typedef struct { | |
unsigned int id; |
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
function factorialByLoop(number) { | |
let num = 1n; | |
for (let i = 0; i < number; i++) { | |
num *= BigInt(number - i); | |
} | |
return num; | |
} | |
function factorialByReversedArray(number) { | |
const arr = new Array(); |
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 fs = require("fs"); | |
const HJSON = require("hjson"); | |
const path = require("path"); | |
const childProcess = require("child_process"); | |
const rl = require("readline"); | |
const rlI = rl.createInterface(process.stdin, process.stdout); | |
const options = (() => { | |
const defaults = { | |
codePath: process.argv[2], |