til TIL Handlebars.js each has an else Today I learned that Handlebars.js has an {{else}} instruction when you're iterating over a collection with {{each}}. This allows you to make a contextualized check if the collection is empty.
elixir TIL :calendar rocks Today I learned that Erlang's native calendar module has a super useful function: last_day_of_the_month/2! This saved me a ton of work. Here's how you could use it in
elixir TIL about Ecto schema @derive TL;DR; You can use @derive to choose what attributes from your model you want to serialize via Poison.encode instead of adding custom code to clean your models: Not TL;DR; version
elixir A saner way to deal with complex flows Yes, finally! We now have in Elixir the with keyword! (See what I did there with the post title?) In a gist, with allows you to sequence function calls and return a certain
elixir Digging - Phoenix models I’ll start a new - well, and first too - series of posts called “Digging”. Whenever I face an interesting and enriching digging through code I’ll just write down the steps
elixir Elixir and Travis CI It took me a few hits to make Travis CI and my Addict lib to flow smoothly, so here’s the full instructions to set it up: Go to Travis CI homepage and
programming Elixir: from 0 to spawn() in 30 minutes Introduction A bunch of tutorials already exist online. But while me and @tjsousa were making the slides for the Lisbon Elixir Meetup, I thought that it’d be great to have something like
programming The wonders of .bind() Here’s a quick cool tip to improve code smoothness. How many times have you var self = this; or var _this = this; and all these variants? I always hated typing this - pun
programming RVM to install Ruby 2.0.0 Ruby 2.0.0 is here for quite a while. If you’re using RVM to manage your installed Ruby versions all you have to do is: rvm install 2.0.0 If
programming Backbone JS Slides Here are the slides for my Backbone JS presentation made on require lx meetup, on June 2014. Errata: Slide 27: the verb should be PUT and not POST