Gists

SB - Overwrite Mode

Toggle Overwrite Mode

CMD + OPT + o

It’s unsafe to convert any string to an atom. I ensure only known keys are converted to atoms with this code

more...

Dealing with dates, times and timezones can be a real pain. I allow users of my apps to set their timezone and I store all times as GMT. Then with a few simple steps I adjust all dates and times to the right timezone

more...

Erlang Reliability

This articulates a lot of reasons I use Elixir. Reflections on the Erlang Thesis

Convert a timestamp into a string

more...

Convert a git tag and sha into a mix application version

more...

My elixir norms are all params are snakecase, yet in all my javascript code I use camelcase. Here’s how I ensure any params are in the right format

more...