I am blog

These are the things I write about

Recent posts

Sass maps: A better function for retrieving values

Sass maps: A better function for retrieving values

The @each directive in Sass is used to loop through a map or list. This post gives an example of how we can use this to get values from nested maps.

The Visual Studio extensions you can't live without

The Visual Studio extensions you can't live without

There are some extensions you just can't live without. You forget they are an add-on and not part of Visual Studio as standard. Here's a list of the ones I can't live without, in no particular order.

How to use Sass maps

How to use Sass maps

Sass maps arrived in the Sass 3.3 release, a data structure to store key/value pairs. There are many uses for maps, here's an example with social media icons.

Setting Powershell to a sensible size - Windows 8.1

Setting Powershell to a sensible size - Windows 8.1

This one has been annoying me for a while especially once I got a laptop with a high resolution screen. When Powershell opens, it's tiny. Setting the font size works for that session but the next time you open it, it's back to unreadable again. Here is a trick to get around this.

Grunt task: Compiling to a destination without preserving the folder structure

Grunt task: Compiling to a destination without preserving the folder structure

It is not uncommon to have a complex folder structure for scss or js files. When compiling with Grunt, the outputted file will maintain the same file path as the original. To change this behaviour use the flatten property.

Improve application performance with WOFF2

Improve application performance with WOFF2

The WOFF2 compression format offers up to 30% reduction in file size in comparison with WOFF. It's so new it won't work without configuration in IIS.

Prevent transitionend event firing twice

Prevent transitionend event firing twice

I came across this problem when handling a CSS transitionend event. The transitionend event fires when a CSS transition has completed. The problem wasn't that it wasn't firing, it was firing, but twice.

Clean up your views with display templates - MVC

Clean up your views with display templates - MVC

Looping through lists is not uncommon in views but it can cause bloat and just look plain ugly. Display templates solve this.

Filtering your Trello board with labels

Filtering your Trello board with labels

Trello is a great productivity tool for work and just about anything else. Recently I learnt how to use labels to help manage my boards.

Use display and editor templates FTW!

Use display and editor templates FTW!

Display and editor templates in ASP.NET MVC are often overlooked and are in fact quite powerful, here's why I think they are awesome.