Latest

Sep
19
Webpacker and Tree Shaking Fontawesome

Webpacker and Tree Shaking Fontawesome

Adding all of Fontawesome to your rails project will cause your application.js to balloon. Here is how to configure tree shaking to just include the icons you are actually going to use
1 min read
Sep
18
Bulma on Rails

Bulma on Rails

Bulma is an incredible frame work that works beautifully with Rails. It's trivial to setup so here's how
1 min read
Aug
18
TIL: Asserting Exceptions with Cucumber & Ruby

TIL: Asserting Exceptions with Cucumber & Ruby

Proper use of Cucumber follows a strict given-when-then syntax. This posses a small problem when trying to assert an exception in a 'then' step if it is raised in a 'when' step.
1 min read
Jul
31
TIL: Counting Consecutive Items in a Ruby Array

TIL: Counting Consecutive Items in a Ruby Array

I wanted to know how many times a thing occurs consecutively in array. Only consecutive items are important
Jul
30
TIL: Ruby Splat Operator Builds Arrays

TIL: Ruby Splat Operator Builds Arrays

You can use the splat operator to coerce values into arrays
1 min read
Jul
29
TIL: Denaturing Ruby Array to get the Last Element and Remainder

TIL: Denaturing Ruby Array to get the Last Element and Remainder

Assigning the first element and the remainder of an array to a variable is common, but you can also do the same in reverse
1 min read
Jul
17
Inline Bundler for Ruby Scripts

Inline Bundler for Ruby Scripts

You can write a simple Ruby script which includes in-line bundler and so avoids the need to have a separate Gemfile.
Jul
15
Mini Ruby DSL Template

Mini Ruby DSL Template

Spawning quick DSLs for fun and profit is super easy with Ruby. This toy is a template for stealing for something useful.
1 min read
Jul
14
TIL: Finding the Source of a Ruby Method

TIL: Finding the Source of a Ruby Method

Find out where the source of a method is defined
Jul
13
TIL: Lambda Composition in Ruby

TIL: Lambda Composition in Ruby

Joining lambdas together for fun and profit