Trim Agency
Posted on March 18, 2017 by Alex Miller on Today I Learned

Rename a Phoenix Application

When we build a Phoenix application with $ mix my_app, our application module name is set to MyApp. This module name, as well as the snake case version, is referenced everywhere, making it very cumbersome if you need to ever rename the application. Here is a shell script I wrote the does the job […]

Posted on March 10, 2017 by Alex Miller on Today I Learned

Common Table Expressions in Postgres

PostgresSQL WITH Queries, also known as Common Table Expressions (CTEs), allows us to write complex queries by defining temporary tables for use in a larger query. In other words, we can create in-memory temporary tables and query against them. Here is an (trivial) example where we want the email addresses of all the users who […]

Posted on February 20, 2017 by Tim Hasse on Today I Learned

Evernote to Blog Post

Today I learned how to publish our TIL posts directly to our blog, straight from my favorite text tool, Evernote . We are simply making the connection with one of our go-to’s, Zapier . The concern with this integration is that our zap is searching for new notes every 15 minutes, so you would need […]

Posted on February 18, 2017 by Alex Miller on Today I Learned

Recursion in Elixir

Coming from an object oriented language with data mutability, learning looping in Elixir required that I let go of my current understanding about iterating over a collection. In fact, just forget looping and think recursion. So, what’s recursion? Recursion is solving a problem whereby one applies the same solution to smaller instances of that problem. […]

Posted on by Miguel Lozano on Today I Learned

Angular 1.x Dropdown Menus
(Removing The Blank Option)

Over the past week I kept running into the issue of iterating over an array or an object in a <select> field with ng-repeat, only to find that I had a blank option as the first item in the dropdown.  After trying several strategies, I finally found one that worked. Let’s say you want to […]

Posted on January 31, 2017 by Wilson Rook on Today I Learned

Increase Productivity On Your Mac

Today I learned about a tool to help with workflows on your mac. The Better Touch Tool allows the user to create custom workflows, keyboard shortcuts and snap areas. The custom keyboard shortcuts can be set to individual apps or to be enabled in certain circumstances. In addition to special keyboard shortcuts, the app also […]

Posted on January 29, 2017 by Tim Hasse on Today I Learned

The Power of 3 [micro team edition]

Today I learned that we need to keep doing something that we have found really works: At Trim, we believe that a lean, cross-functional team of three can build a product. To us, that team of three is made up of one product design lead, one product development lead, and one product strategist. We call this […]