Skip to content

Instantly share code, notes, and snippets.

View deveworld's full-sized avatar
๐Ÿ˜ตโ€๐Ÿ’ซ
I may be slow to respond.

Gi Hyeon Sim deveworld

๐Ÿ˜ตโ€๐Ÿ’ซ
I may be slow to respond.
View GitHub Profile
@deveworld
deveworld / encode.py
Last active May 6, 2024 08:45
Diff-SVC Audio Data Preprocess Python Script
import os
import glob
import parmap
import multiprocessing
import subprocess as sp
FFMPEG_BIN = "ffmpeg"
def encode(input, output_path):
@deveworld
deveworld / finder.py
Last active November 4, 2025 01:26
Micro:bit tag/finder
# ๋ถ„์‹ค๋ฐฉ์ง€ ํƒœ๊ทธ ์‹œ์Šคํ…œ - ํŒŒ์ธ๋”/ํœด๋Œ€์šฉ
# micro:bit์— ์—…๋กœ๋“œํ•  ์ฝ”๋“œ
from microbit import *
import radio
import music
CHANNEL = 73
POWER = 7
@deveworld
deveworld / hackatime_timer.py
Created June 3, 2026 12:57
hackatime_timer
#!/usr/bin/env python3
"""
hackatime_timer.py โ€” Hackatime ์ˆ˜๋™ ํƒ€์ด๋จธ (manual timer)
์—๋””ํ„ฐ ํ”Œ๋Ÿฌ๊ทธ์ธ ์—†์ด, ์†์œผ๋กœ ์‹œ์ž‘/์ •์ง€ํ•˜๋Š” ํƒ€์ด๋จธ๋กœ Hackatime์— ์ฝ”๋”ฉ ์‹œ๊ฐ„์„
๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค. ํƒ€์ด๋จธ๊ฐ€ ๋„๋Š” ๋™์•ˆ ์ผ์ • ๊ฐ„๊ฒฉ์œผ๋กœ heartbeat๋ฅผ ๋ณด๋‚ด๋ฉฐ, ์ •์ง€ ์‹œ
๋งˆ์ง€๋ง‰ heartbeat๋ฅผ ๋ณด๋‚ด "์‹œ์ž‘~์ •์ง€"๊นŒ์ง€์˜ ์‹ค์ œ ๊ฒฝ๊ณผ ์‹œ๊ฐ„์ด ๊ธฐ๋ก๋˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.
์›๋ฆฌ (hackclub/hackatime ์†Œ์Šค ๊ธฐ์ค€):
- ์„œ๋ฒ„๋Š” heartbeat ์‚ฌ์ด ๊ฐ„๊ฒฉ์ด 120์ดˆ(2๋ถ„) ์ด๋‚ด์ด๋ฉด ํ•˜๋‚˜์˜ ์—ฐ์† ๊ตฌ๊ฐ„(span)์œผ๋กœ