Skip to content

Instantly share code, notes, and snippets.

View trilliwon's full-sized avatar
🎯
Focusing

WonJo trilliwon

🎯
Focusing
View GitHub Profile
$ git branch | fzf
$ git switch $(git branch | fzf)
$ git checkout $(git for-each-ref refs/heads/ --format='%(refname:short)' | fzf)

Or add below script to .zshrc

@trilliwon
trilliwon / ts-commands-01.md
Last active December 18, 2021 16:03
ts scripts
npm install -g ts-node
npm install -g typescript
ts-node ***.ts

tsc main.ts && node main.js

npx ts-node-dev --respawn main.ts

I had an error start postgre local server like PostgreSQL stale ‘postmaster.pid’ error

  • To fix this error should just remove postmaster.pid file. This issue happens when the PostgreSQL process dies without cleaning up its pid file.

Delete postmaster.pid

  • cd Library/Application\ Support/Postgres/var-13/
  • rm postmaster.pid

Standard ML Topics


Pairs, Lists, Local Bindings, Benefit of No Mutation

Records, Datatypes, Case Expressions and more

  • A variable binding

First class functions

함수가 expression 으로 사용될 있으면 일급함수이다. 오브젝트로서 사용될 수 있으면 일급함수. 함수를 값으로써 변수에 대입하거나 함수의 리턴값으로 사용되면 일급함수다.


Higher-Order Functions (고차함수)

Generic term is Test Double. 테스트에서 사용할 때 production object를 대신하는 용어다.

Dummy

objects are passed around but never actually used. Usually they are just used to fill parameter lists. 실제로 사용되지 않으며 파라미터로 넘겨질 수 있는 오브젝트, 단지 파라미터 리스트를 채우기 위해 사용함.

Fake

Precision and ambiguity

  • Coarse-grained materials or systems have fewer, larger discrete components than fine-grained materials or systems.
  • A coarse-grained description of a system regards large subcomponents.
  • A fine-grained description regards smaller components of which the larger ones are composed.

granularity : 과립 상태


True Positive

참인 것을 참으로 판단

True Negative

거짓인 것을 거짓으로 판단

False Positive

실제 거짓인 것을 참인 것으로 판정하는 오류

A false positive error, or in short a false positive, commonly called a "false alarm", is a result that indicates a given condition exists, when it does not. For example, in the case of "The Boy Who Cried Wolf", the condition tested for was "is there a wolf near the herd?"; the shepherd at first wrongly indicated there was one, by calling "Wolf, wolf!"