원 글: https://earthly.dev/blog/bazel-build/
번역기로 기계번역한 후 다듬은 글입니다.
Earthly에서는 빌드에 대해 많은 관심을 가지고 있으며 많은 사람들과 빌드 및 CI에 대한 어려움을 이야기합니다. 특히 모노레포와 500명 이상의 개발자가 있는 조직에서 자주 논의되는 주제는 Google의 오픈 소스 모노레포 빌드 시스템인 Bazel입니다.
/* ~/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 |
원 글: https://earthly.dev/blog/bazel-build/
번역기로 기계번역한 후 다듬은 글입니다.
Earthly에서는 빌드에 대해 많은 관심을 가지고 있으며 많은 사람들과 빌드 및 CI에 대한 어려움을 이야기합니다. 특히 모노레포와 500명 이상의 개발자가 있는 조직에서 자주 논의되는 주제는 Google의 오픈 소스 모노레포 빌드 시스템인 Bazel입니다.
# 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: |
# 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 |
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'" |
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) | |
## | |
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 | |