Skip to content

Instantly share code, notes, and snippets.

@hylowaker
hylowaker / DefaultKeyBinding.dict
Created June 20, 2025 06:06 — forked from trusktr/DefaultKeyBinding.dict
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@hylowaker
hylowaker / when_to_use_bazel.md
Last active November 10, 2023 18:42
When to use Bazel? 번역

원 글: https://earthly.dev/blog/bazel-build/

번역기로 기계번역한 후 다듬은 글입니다.

When to use Bazel?

Bazel 빌드?

Earthly에서는 빌드에 대해 많은 관심을 가지고 있으며 많은 사람들과 빌드 및 CI에 대한 어려움을 이야기합니다. 특히 모노레포와 500명 이상의 개발자가 있는 조직에서 자주 논의되는 주제는 Google의 오픈 소스 모노레포 빌드 시스템인 Bazel입니다.

@hylowaker
hylowaker / .bashrc.custom
Created November 1, 2022 06:03
My custom .bashrc for WSL
# Custom PATH
#PATH="/home/hylw/bin:/home/hylw/.local/bin/:$PATH"
PATH="$PATH:/mnt/c/Users/jH/AppData/Local/Programs/Microsoft VS Code/bin"
export PATH
# Ctrl+S
[[ $- == *i* ]] && stty -ixon
env:
es2021: true
node: true
extends:
- airbnb-base
parserOptions:
ecmaVersion: latest
sourceType: module
rules:
no-use-before-define:
@hylowaker
hylowaker / 논산팁.md
Last active April 9, 2022 08:32
전문연 논산훈련소

2020년 6월

준비물

  • 입영통지서, 신분증, 나라사랑카드

    • 필수
  • 캐리어 혹은 커다란 가방

    • 작은거 말고 큰 거로 가져가. 이것저것 챙길 짐이 많음.
  • 웬만하면 캐리어 추천. 입소, 퇴소할 때 꽤 많이 걸어야 함.

@hylowaker
hylowaker / .tmux.conf
Last active December 3, 2020 07:14
my tmux config
# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Turn the mouse on, but without copy mode dragging
set -g mouse on
unbind -n MouseDrag1Pane
unbind -Tcopy-mode MouseDrag1Pane
@hylowaker
hylowaker / ExceptionRuntimeException.java
Created April 18, 2019 01:52
Java tunneling exception through runtime exception
class ExceptionRuntimeException extends RuntimeException {
ExceptionRuntimeException(Exception e) {
exception = e;
}
void rethrowException() throws Exception {
throw e;
}
/* ...etc... */
Exception e;
}
# list ssh hosts
alias ssh-hosts="pcregrep -M \"^Host .+\n +HostName.+\n\" $HOME/.ssh/config | sed ':a;N;\$!ba;s/Host //gi;s/\\n HostName / : /gi'"
@hylowaker
hylowaker / hmmviterbi.py
Created December 5, 2017 03:54
HMM Viterbi & Forward Algorithm tutorial
import numpy as np
import tensorflow as tf
class HMM(object):
def __init__(self, initial_prob, trans_prob, obs_prob):
self.N = np.size(initial_prob)
self.initial_prob = initial_prob
self.trans_prob = trans_prob
self.emission = tf.constant(obs_prob)
@hylowaker
hylowaker / miscs.py
Last active August 10, 2018 06:43
쓸데없는 함수조각
##
def combinations_simple(n: int, r: int):
assert n >= r >= 0
numer = denom = 1
for i, j in zip(range(n, n-r, -1), range(r, 0, -1)):
numer *= i
denom *= j
return numer//denom