Add utility functions to iex
How to create short functions that can be called directly in your Elixir iex session
Hi, I’m Andrew, a programmer and entrepreneur from South Africa,
building
Mailcast
for taking control of your email.
Thanks for visiting and reading.
How to create short functions that can be called directly in your Elixir iex session
In Elixir code_change/3 is the callback that allows you to upgrade state in a GenServer process during a hot-code upgrade—but it didn’t work for me. Understanding how the erlang release handler finds processes to update helped me to figure out what was wrong and how to fix it.
Every now and then you want to pause a test so you can investigate the state of the world around it.
Enable Repo.count(query) in Ecto
How to benchmark a function in Elixir using benchfella
A quick tip to make it easier to use Dead Man's Snitch with the whenever gem
Hash#clean, a monkey patch to provide easy, Array#map like access to hash values to update them inline.
How to ignore blank lines when parsing a csv file with ruby's CSV parser.
When an item is added to a collection in Backbone.js it should automatically be added to the corresponding list. When using a sorted collection it would be nice to have it appear in place, especially when not refreshing the entire list. That's what I'll explore in this post.
I needed to loop over a fairly large data set and group it by year and month. In this post I walk through using two Ruby Fibers which communicate between each other in order to do in-loop grouping