Philip Hendry's Blog
Sporadic musings from Philip Hendry

Binding Keypresses using Mousetrap in Aurelia

Feb 7, 2016 • Aurelia, JavaScript • 3 min read

I wanted to enhance my Aurelia app with some keyboard shortcuts so immediately searched the internet for a library that would overcome browsers differences for me whilst making it easy to set up key presses and their callbacks.  Read →

Binding HTML Boolean Attributes in Aurelia

Feb 7, 2016 • Aurelia, JavaScript • 1 min read

I've noticed before how HTML defines attributes such as multiple which don't take values but I didn't appreciate that the HTML specification has a term for these - boolean attributes. And so I came across this term when I was trying to bind multiple in a <select> using Aurelia. Take the following Aurelia template as an example:  Read →

PowerShell Calculated Properties Used to Count Lines of Code

Nov 23, 2015 • PowerShell • 2 min read

I've completed committed myself to PowerShell in the last few months which means when I've got a problem that should be scripted I'll stick to my guns and make it work with PowerShell.  Read →