Skip to content

Instantly share code, notes, and snippets.

View monpetit's full-sized avatar
💭
I may be slow to respond.

YoungSik Won monpetit

💭
I may be slow to respond.
View GitHub Profile
@monpetit
monpetit / elixir.ex
Created August 29, 2018 06:28
Elixir Periodic Timer with Callback
defmodule PeriodicTimer do
use GenServer
@init_state %{
name: __MODULE__,
count: 0,
run: false,
interval: 1_000,
task: nil,
task_args: []
@monpetit
monpetit / datehelper.py
Created January 29, 2021 04:58
python datetime helper
import datetime
import dateutil.parser as dtparser
from pytz import timezone, utc
KST = timezone('Asia/Seoul')
def utc_to_local(dt, tz=KST):
try:
return utc.localize(dt).astimezone(tz)

Keybase proof

I hereby claim:

  • I am monpetit on github.
  • I am monpetit (https://keybase.io/monpetit) on keybase.
  • I have a public key ASCvu0ZQCVYrL0DW7l5YcZkRgqaMbCqFjyf1EXK82xDVmQo

To claim this, I am signing this object: