Skip to content

Instantly share code, notes, and snippets.

@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@renanlage
renanlage / crash_eventstore.ex
Last active July 31, 2018 03:21
Mata a conexão do listener do Postgrex na marra
{_, port} = \
GenServer.whereis(EventStore.Notifications.Listener.Postgrex)\
|> :sys.get_state()\
|> Map.get(:pid)\
|> :sys.get_state()\
|> Map.get(:mod_state)\
|> Map.get(:protocol)\
|> Map.get(:sock)
:erlang.port_close(port)