Euler Pi

A Blog of Tech, Math, and Geek Stuff

Latest Posts

Filed under: Site Updates

It's been a while

Yeah, I’ve been neglecting this blog for a long time. It’s been a long struggle, but after years of self reflecting and working on myself, I’ve decided to refocus myself; and this blog is a part of that effort.

Filed under: Code & Craft

Dependency Injection in Ruby

Dependency injection is a technique to decrease and make more explicit the coupling between two classes by moving a dependency from deep within the dependent class to its initializer.

Filed under: Life Hacks & Personal Growth

On Simplicity

Over the past few years I’ve fallen into the habit of trying to start blogging regularly, only to fall into the same trap over and over. While I could rattle off the reasone, it really comes down to one thing: a lack of simplicity.

Filed under: Code & Craft

Welcome to Jekyll Bootstrap

Welcome to Jekyll Bootstrap, a new from-scratch iteration at a Jekyll theme, written using Bootstrap v4. By default, the first paragraph will appear in the index summary, complete with styling. If you define an excerpt_separator in the post’s frontmatter, you can have more or fewer paragraphs in the index excerpts. Try it!

This post can be found in the _posts directory, following the convention of

Filed under: Code & Craft

Jekyll Inline Conditionals With Liquid Filters

Often times when writing Jekyll templates, we need to do some conditional matching on certain blocks of text, returning one value in one instance, and a different value in another instance. Many times only a small portion needs to be changed, such as the name of a class, or inserting a default value when a variable is nil.