Skip to content

Instantly share code, notes, and snippets.

View haje01's full-sized avatar

Kim Jeong Ju haje01

View GitHub Profile
@haje01
haje01 / init.lua
Last active May 1, 2025 10:05
macOS IME Cursor
-- μ„€μΉ˜ 방법:
-- 1. Hammerspoon μ„€μΉ˜ (https://www.hammerspoon.org/)
-- 2. μ•„λž˜ λ‚΄μš©μ„ ~/.hammerspoon/init.lua 으둜 μ €μž₯
--
-- μ°Έκ³ : μœˆλ„μš°μš© IME Cursor (https://forest.watch.impress.co.jp/library/software/imecursor/)
local indicatorCircle = nil
local followTimer = nil
local xoff = 15
local yoff = 4
@haje01
haje01 / .sh
Last active January 3, 2025 02:40
둜컬 LLM 을 μ΄μš©ν•œ ν•œκ΅­μ–΄ Git 컀밋 λ©”μ‹œμ§€
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# 원본 : https://gist.github.com/karpathy/1dd0294ef9567971c1e4348a90d69285
# Ollama (https://ollama.com/) μ„€μΉ˜ ν›„, λ‹€μŒμ²˜λŸΌ Aya-Expanse λͺ¨λΈ μ„€μΉ˜ ν›„ 이용
# `ollama run aya-expanse:latest hi`
#
gcm() {
# Function to generate commit message
generate_commit_message() {
local git_diff=$1
@haje01
haje01 / add_to_zshrc.sh
Last active November 13, 2024 09:59 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@haje01
haje01 / Snakefile
Last active October 21, 2022 04:27
Snakemake 둜 λ‹€μˆ˜ μ„œλ²„μ˜ νƒ€μž„μ‘΄ κ°±μ‹ 
## λ‹€μˆ˜ μ„œλ²„μ˜ νƒ€μž„μ‘΄ ν•œ λ²ˆμ— κ°±μ‹  ν•˜κΈ°
#
# # Asia/Seoul 쑴의 경우 ($ 에 주의)
# $ snakemake -F temp/Asia/Seoul$ -j
#
# # America/Argentina/Cordoba 의 경우
# $ snakemake -F temp/America/Argentina/Cordoba$ -j
#
# μ—…λ°μ΄νŠΈ λŒ€μƒ 호슀트 μ£Όμ†Œ
@haje01
haje01 / rl_roboschool_ray_distributed_simple.ipynb
Last active May 11, 2019 11:47
SageMaker RLμ—μ„œ Ray둜 Roboschool Reacher 풀이
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@haje01
haje01 / sample.py
Last active March 8, 2018 04:25
Pandas 예제
def do_group(gdf):
"""각 그룹별 처리."""
# λŒ€μƒ 그룹이 μ•„λ‹ˆλ©΄ κ·ΈλŒ€λ‘œ
if gdf.group.iloc[0] not in groups_need_change:
return gdf
# valueκ°€ μ—†λŠ” 인덱슀
nidx = gdf.value.isna()
# valueκ°€ μžˆλŠ” 인덱슀
pidx = ~nidx

이 글은 μ•ˆλ“œλ ˆμ΄ μΉ΄νŒ¨μ‹œμ˜ κΈ€ μ†Œν”„νŠΈμ›¨μ–΄ 2.0 을 λ²ˆμ—­ν•œ κ²ƒμž…λ‹ˆλ‹€. 의/μ˜€μ—­μ΄ μžˆμ„ 수 μžˆμŠ΅λ‹ˆλ‹€.


μ†Œν”„νŠΈμ›¨μ–΄ 2.0

λ‚˜λŠ” λ•Œλ•Œλ‘œ μ‚¬λžŒλ“€μ΄ λ‰΄λŸ΄λ„·μ„ "κΈ°κ³„ν•™μŠ΅ 도ꡬ μƒμžμ˜ 또 λ‹€λ₯Έ 도ꡬ"둜 μ–ΈκΈ‰ν•˜λŠ” 것을 λ³Έλ‹€. λ‰΄λŸ΄λ„·μ€ μž₯단점이 μžˆλ‹€. μ—¬κΈ° μ €κΈ°μ—μ„œ λ™μž‘ν•˜κ³ , λ•Œλ‘œλŠ” 캐글 κ²½μŸμ—μ„œ μŠΉλ¦¬ν•˜λŠ”λ° μ‚¬μš©ν•  μˆ˜λ„ μžˆλ‹€. κ·ΈλŸ¬λ‚˜ 이 해석은 μ™„μ „νžˆ λ‚˜λ¬΄λ§Œ 보고 μˆ²μ„ 보지 λͺ»ν•˜λŠ” 것이닀. λ‰΄λŸ΄λ„·μ€ 단지 또 λ‹€λ₯Έ μ’…λ₯˜μ˜ λΆ„λ₯˜κΈ°κ°€ μ•„λ‹ˆλ‹€. 그것은 μš°λ¦¬κ°€ μ†Œν”„νŠΈμ›¨μ–΄λ₯Ό μž‘μ„±ν•˜λŠ”λ° μžˆμ–΄ 근본적인 λ³€ν™”μ˜ μ‹œμž‘μ„ λ‚˜νƒ€λ‚Έλ‹€. 그것은 μ†Œν”„νŠΈμ›¨μ–΄ 2.0이닀.

μ†Œν”„νŠΈμ›¨μ–΄ 1.0의 "고전적인 μŠ€νƒ"은 μš°λ¦¬κ°€ μ΅μˆ™ν•œ 것이닀. 그것은 Python, C++ λ“±μ˜ μ–Έμ–΄λ‘œ μž‘μ„±μ΄ λ˜μ–΄ 있고, ν”„λ‘œκ·Έλž˜λ¨Έκ°€ μž‘μ„±ν•œ ꡬ체적 λͺ…λ ΉμœΌλ‘œ κ΅¬μ„±λ˜μ–΄ μžˆλ‹€. ν”„λ‘œκ·Έλž˜λ¨ΈλŠ” μ½”λ“œμ˜ 각 라인을 μž‘μ„±ν•˜λŠ” κ²ƒμœΌλ‘œ ν”„λ‘œκ·Έλž¨ κ³΅κ°„μ˜ νŠΉμ • 포인트λ₯Ό μ–΄λ–€ μ›ν•˜λŠ” ν–‰λ™μœΌλ‘œ ν™•μ •μ§“κ³  μžˆλ‹€.

@haje01
haje01 / tictactoe.py
Last active March 15, 2017 12:16
Tictactoe RL Tutorial
import time
import random
import pytest
import numpy as np
EPS = 0.1
ALPHA = 0.1
MAX_EPISODE = 100000
@haje01
haje01 / README.md
Last active June 16, 2017 01:46
Distributed TensorFlow

λΆ„μ‚° ν…μ„œν”Œλ‘œμš°

이 글을 μž‘μ„±ν•˜λŠ” μ‹œμ (2017-01-11)μ—μ„œ λΆ„μ‚° ν…μ„œν”Œλ‘œμš°μ˜ κ΄€λ ¨ 자료 λΆ€μ‘±μœΌλ‘œ ν™•μ‹€νžˆ λΆ„μ‚° ν•™μŠ΅μ΄ λ˜λŠ”μ§€ 확인이 λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. μ•ˆνƒ€κΉμ§€λ§Œ λ³Έ λ‚΄μš©μ€ 참고만 ν•˜μ‹œκΈ° λ°”λžλ‹ˆλ‹€.

원문 [https://www.tensorflow.org/how_tos/distributed/] (https://www.tensorflow.org/how_tos/distributed/)

κ°œλ… μ„€λͺ…

  • ν΄λŸ¬μŠ€ν„°λŠ” ν…μ„œν”Œλ‘œμš° κ·Έλž˜ν”„μ˜ λΆ„μ‚° μˆ˜ν–‰μ— μ°Έμ—¬ν•˜λŠ” ν…ŒμŠ€ν¬λ“€μ˜ μ§‘ν•©
@haje01
haje01 / DeepMind Lab μ„€μΉ˜.md
Last active December 7, 2017 12:39
DeepMind Lab μ„€μΉ˜

DeepMind Lab μ„€μΉ˜

ν˜ΈμŠ€νŠΈκ°€ Linuxκ°€ μ•„λ‹Œ 경우 VM μ…‹νŒ…

  1. VirtualBox μ„€μΉ˜
  2. Ubuntu 개발자용 Desktop λ°›κΈ° https://www.ubuntu.com/download/desktop
  3. VirtualBoxμ—μ„œ 가상머신을 λ§Œλ“€κ³  μ‹œμž‘
  4. λ°›μ•„λ‘” Ubuntu .ISOλ₯Ό μ§€μ •

μ„€μΉ˜