Skip to content

Instantly share code, notes, and snippets.

View junwha's full-sized avatar
🌎
GOGO

Junwha Hong junwha

🌎
GOGO
View GitHub Profile
@junwha
junwha / notion_sync.js
Last active May 29, 2025 14:19
Sync with notion table
const fs = require('fs');
const path = require('path');
const { Client } = require('@notionhq/client');
const { markdownToBlocks, blocksToMarkdownString } = require('@tryfabric/martian');
const { NotionToMarkdown } = require("notion-to-md");
const notion = new Client({ auth: process.env.NOTION_TOKEN });
const n2m = new NotionToMarkdown({ notionClient: notion, config: { parseChildPages: false } });
const [, , databaseId, manualTitle] = process.argv;
@junwha
junwha / print_lines_and_code_pdb.py
Last active April 30, 2025 10:55
[PDB] How to print code lines in VSCode format (Ctrl + Click)
import pdb
import linecache
def patched_print_stack_entry(self, frame_lineno, prompt_prefix=">", context=None):
filepath, lineno = frame_lineno[0].f_code.co_filename, frame_lineno[1]
print(f"file: {filepath}:{lineno}")
try: print(f"{linecache.getline(filepath, lineno-1)}", end="")
except: pass
print(f"{linecache.getline(filepath, lineno)}", end="")
try: print(f"{linecache.getline(filepath, lineno+1)}", end="")
@junwha
junwha / gist:74bf31680fd834c4659f697a344c5e0b
Created January 14, 2022 13:35
μ΄ν•™μƒνšŒμΉ™
μ „λ¬Έ
인λ₯˜μ˜ 삢에 κ³΅ν—Œν•˜λŠ” 세계적 κ³Όν•™κΈ°μˆ μ˜ 선도λ₯Ό λͺ©μ μœΌλ‘œ 2007λ…„ μ„€λ¦½λœ μšΈμ‚°κ³Όν•™κΈ°μˆ λŒ€ν•™κ΅λŠ” μ—¬λŸ¬ μ„ λ°° ν•™μš°λ“€μ˜ λ…Έλ ₯κ³Ό 희생을 λ°”νƒ•μœΌλ‘œ λˆˆλΆ€μ‹  λ°œμ „μ„ μ΄λ£©ν•œ λ°”, 2015λ…„ 9μ›” 28μΌλΆ€λ‘œ μšΈμ‚°κ³Όν•™κΈ°μˆ μ›μœΌλ‘œ μƒˆλ‘œμ΄ νƒœμ–΄λ‚¬λ‹€. 개ꡐ 이후 짧은 κΈ°κ°„ λ™μ•ˆ μšΈμ‚°κ³Όν•™κΈ°μˆ μ› 학생듀은 학업적 λ°œμ „λΏλ§Œ μ•„λ‹ˆλΌ μžμœ μ™€ 창의, λ―Όμ£Όλ₯Ό μΆ”κ΅¬ν•˜λŠ” λŒ€ν•™μƒμœΌλ‘œμ„œμ˜ 본뢄을 λ‹΄μ•„ UNIST μ΄ν•™μƒνšŒλ₯Ό λ§Œλ“€μ–΄ ν•™λ‚΄ λ―Όμ£Όμ£Όμ˜μ™€ 자유둜운 λŒ€ν•™ λ¬Έν™” ν˜•μ„±μ„ μ΄λ£©ν•˜μ˜€λ‹€. μ΄λŸ¬ν•œ λœ»μ„ κ³„μŠΉν•˜κ³ , 개편된 ν•™μ œμ— λŒ€μ‘ν•˜λ©°, λ³€ν™”ν•œ ν•™μƒμ‚¬νšŒμ˜ λͺ¨μŠ΅μ„ λ°˜μ˜ν•˜μ—¬, 제10λŒ€ μ΄ν•™μƒνšŒλŠ” 2016λ…„ 8μ›” 15일에 μ œμ •λœ UNIST ν•™λΆ€ μ΄ν•™μƒνšŒμΉ™μ„ 2020λ…„ 9μ›” 27일에 μ€‘μ•™μš΄μ˜μœ„μ›νšŒμ™€ μ „μ²΄ν•™μƒλŒ€ν‘œμžνšŒμ˜μ˜ μ˜κ²°μ„ 거쳐 κ°œμ •ν•œλ‹€.
제1μž₯ 총칙
제1μ‘° (λͺ…μΉ­)
λ³Έ νšŒλŠ” UNIST ν•™λΆ€ μ΄ν•™μƒνšŒ(μ΄ν•˜ "λ³Έ 회"라 ν•œλ‹€)라 μΉ­ν•œλ‹€.
제2μ‘° (λͺ©μ )