• Skip to primary navigation
  • Skip to content
  • Skip to footer
dev diary, TIL 톱밥과 Today I Learned
  • Posts
  • Categories
  • Tags
  • Random
    Jongbin Oh

    Jongbin Oh

    I write something to think

    • South Korea
    • Twitter
    • Facebook
    • GitHub
    • Instagram
    • Email

    #TIL #elixirlang milliseconds로 바꾸는 함수

    less than 1 minute read

    iex> :timer.seconds(1)
    1000
    iex> :timer.minutes(1)
    60000
    iex> :timer.hours(1)
    3600000
    iex> :timer.hms(1, 0, 0)
    3600000
    iex> :timer.hms(1, 1, 1)
    3661000
    

    왜 elixir에 없지? 만들어서 쓰다가 erlang에 있는 걸 찾았다.

    Tags: elixirlang

    Categories: til

    Updated: 2020-01-07

    Twitter Facebook LinkedIn
    Previous Random Next

    You May Also Enjoy

    #TIL GitHub Actions Workflow에서 Postgreql 사용하기

    less than 1 minute read

    GitHub Actions Workflow를 사용해 테스트를 돌린다. 테스트할 때, database가 필요해서 사용하는 방법을 알아봤다.

    #TIL Elixir for 포괄 구문(Comprehensions)

    less than 1 minute read

    Elixir의 for 포괄 구문(Comprehensions)을 잘 사용한 코드 예제를 ’Testing Elixir (Andrea Leopardi, Jeffrey Matthias, 2021)’ 책에서 봤다.

    #TIL asdf .tool-versions 파일로 GitHub Actions에서 erlang, elixir 버전 셋업

    less than 1 minute read

    프로젝트별 erlang과 elixir 버전 관리를 Asdf로 하고 있다. .tool-versions 파일로 사용하는 버전을 정의한다. 지금 사용 중인 .tool-versions 내용은 아래와 같다.

    #TIL #elixirlang reply_success/2 파이프를 끝까지 태우려는 노력

    less than 1 minute read

    ’Functional Web Development with Elixir, OTP, and Phoenix (Lance Halvorsen, 2018)’ 책에서 간단한 함수 하나로 pipe operator를 끝까지 태우는 코드를 봤다. GenServer Behaviour 콜백 함수인 h...

    • Feed
    © 2025 dev diary, TIL. Powered by Jekyll & Minimal Mistakes.