The Missing Bit

Blog posts

Selecting virtual field in Ecto
2017-02-21

In you Ecto model, you might have some virtual fields that needs to be computed when you select from your database.

Read more »

 

Template literals in Typescript
2017-02-17

It might be common knowledge, but I just discovered that Typescript was supporting JavaScript template literals.

Read more »

 

Convolution filter in javascript
2017-02-02

While working in a project, I needed a convolution filter in javascript. I ended doing it server side, but I thought I’d share my thoughts.

Read more »

 

Using promise and fetch with Typescript
2017-02-01

The current Javascript ecosystem is confusing, and that’s an understatement.

I use Webpack to bundle my Typescript projects to the browser, and until now, I used Q.js and regular XMLThingyRequest.

The time has come to use native Promise and the fetch API. What I wanted is a low friction way to use that in my Typescript projects. By low friction I mean, like I’m using the native API with no shim.

Read more »

 

Using NODE_ENV with typescript and Webpack
2017-01-30