Skip to content

Instantly share code, notes, and snippets.

View partrita's full-sized avatar
๐ŸŽฏ
Focusing on hobby

Taeyoon Kim partrita

๐ŸŽฏ
Focusing on hobby
View GitHub Profile
@partrita
partrita / test0409.ipynb
Last active April 9, 2017 04:10
sklearn for learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@partrita
partrita / acentral reconstruction.ipynb
Created April 14, 2017 07:50
acentral reconstruction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@partrita
partrita / line_plot_errorbar.py
Last active June 22, 2025 04:57
line_plot_errorbar
import matplotlib.pyplot as plt
def plot_data_with_errorbar(ax, x_data, y_data, y_error, fmt, label):
"""
์ฃผ์–ด์ง„ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ errorbar ๊ทธ๋ž˜ํ”„๋ฅผ ๊ทธ๋ฆฝ๋‹ˆ๋‹ค.
๋งค๊ฐœ๋ณ€์ˆ˜:
ax (matplotlib.axes.Axes): ๊ทธ๋ฆผ์„ ๊ทธ๋ฆด Axes ๊ฐ์ฒด.
x_data (list): X์ถ• ๋ฐ์ดํ„ฐ.
y_data (list): Y์ถ• ๋ฐ์ดํ„ฐ.
@partrita
partrita / pomodoro.py
Last active June 22, 2025 04:49
simple pomodoro timer for me
import time
import argparse
from tqdm import tqdm
def run_timer(duration_seconds: int, message: str):
"""
์ง€์ •๋œ ์‹œ๊ฐ„ ๋™์•ˆ ํƒ€์ด๋จธ๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ์ง„ํ–‰๋ฅ  ํ‘œ์‹œ์ค„์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
"""
print(message)
for _ in tqdm(range(duration_seconds)):
@partrita
partrita / chrom_cal.py
Last active June 22, 2025 04:59
simple python script for calculator of chromatography
import click
import math
# ์ƒ์ˆ˜๋Š” ์ „์—ญ์ ์œผ๋กœ ์ •์˜
PI = math.pi # math.pi๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋” ์ •ํ™•ํ•œ ํŒŒ์ด ๊ฐ’ ์‚ฌ์šฉ
def calculate_cross_sectional_area(diameter_cm: float) -> float:
"""
์ฃผ์–ด์ง„ ์ง๊ฒฝ์— ๋Œ€ํ•œ ์›ํ˜• ๋‹จ๋ฉด์ ์„ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค.
"""
@partrita
partrita / Mactype Noto Sans CJK.md
Last active December 10, 2020 16:01 — forked from drawxcards/Mactype Noto Sans CJK for Win10.md
Mactype Noto Sans CJK for Win10
  1. Noto Sans CJK ํฐํŠธ ์„ค์น˜
  2. mactype ๋‹ค์šด๋กœ๋“œํ›„ ์„ค์น˜
  3. ์•„๋ž˜์˜ ๋‚ด์šฉ์„ C:\Program Files\MacType\ini\NotoSansCJK.ini ์— ํ…์ŠคํŠธ ํŒŒ์ผ๋กœ ์ €์žฅ
[Preview]
Font=Noto Sans Mono CJK
Color=$000000
Text=This is Noto Sans Mono CJK 01234567890!@#$%^&*
Size=10
@partrita
partrita / 5myzsh.md
Last active June 22, 2025 05:05
personal set up of zsh.

Zsh, Oh My Zsh, Starship: ํ„ฐ๋ฏธ๋„ ๋งž์ถค ์„ค์ • ๊ฐ€์ด๋“œ

์ด ๊ฐ€์ด๋“œ๋Š” Zsh, Oh My Zsh, Starship ๋ฐ ํ•„์ˆ˜ Zsh ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ•๋ ฅํ•˜๊ณ  ์‹œ๊ฐ์ ์œผ๋กœ ๋งค๋ ฅ์ ์ธ ํ„ฐ๋ฏธ๋„ ํ™˜๊ฒฝ์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค.


0. ์‚ฌ์ „ ์ค€๋น„

์‹œ์ž‘ํ•˜๊ธฐ ์ „์— Bash ์…ธ์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์„ธ์š”. ์ด ๊ฐ€์ด๋“œ๋Š” apt ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ Debian ๊ธฐ๋ฐ˜ Linux ๋ฐฐํฌํŒ(์˜ˆ: Ubuntu)์„ ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ๊ฐ€์ •ํ•ฉ๋‹ˆ๋‹ค.

@partrita
partrita / keymap.json
Created February 26, 2022 11:32
My keymap for sweep keyboard
{ "version": 1,
"notes": "My awesome keymap",
"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": "ferris/0_1",
"keymap": "default",
"layout": "LAYOUT_split_3x5_2",
"layers": [
["KC_Q" , "KC_W" , "KC_E" , "KC_R" , "KC_T",
"KC_Y" , "KC_U" , "KC_I" , "KC_O" , "KC_P",
@partrita
partrita / timer.py
Last active June 22, 2025 04:59
Simple timer by python code
import time
import sys
def stopwatch():
"""
๊ฐ„๋‹จํ•œ ํ„ฐ๋ฏธ๋„ ๊ธฐ๋ฐ˜ ์Šคํ†ฑ์›Œ์น˜๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
Ctrl+C๋ฅผ ๋ˆŒ๋Ÿฌ ์Šคํ†ฑ์›Œ์น˜๋ฅผ ์ค‘์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
"""
start_time = time.time()
@partrita
partrita / mouseable.json
Last active February 27, 2023 00:02
My mouseable(https://github.com/wirekang/mouseable) key config files.
{
"command": {
"activate": "alt+j",
"deactivate": "alt+;",
"activate-temp": "alt - alt",
"move-left": "A",
"move-down": "S",
"move-up": "W",
"move-right": "D",
"teleport-forward": "K",