Installing a Python package from Github

While the standard route for installing a Python package would be to upload the package to PyPI and then use pip, clearly some packages are too narrow in scope for this. For example, why should the rest of the world care about Python code for generating efficiency plots for SALT? …

Listening to ngModel in a directive

It took a bit of searching until I found the solution to how one can listen to ng-model changes in a directive with isolate scope. The suggestive solution would be to add a listener to the $viewChangeListeners property of the ngModel controller. But this isn’t failsafe, it seems; the listeners …

Custom form elements in Angular

Angular’s magic shines mightily when it comes to HTML forms, as it greatly simplifies form validation etc. But what if you would …

Responsive SVG

Imagine that you’ve used your incredible creativity to create the following beautiful HTML: You open the page in a browser and all …

Pie in the Sky, with D3

The world is divided in beer drinkers and wine lovers. Let’s illustrate this with a pie chart, using D3 for all the …

Logging in Grunt, in colour

Grunt provides various functions for logging, such as grunt.log.error() and grunt.log.ok(). Most of these prepend the message with ‘>>’ and don’t colour …

Building Grids with Susy

With Bootstrap you can create a form with labels to the left of the input fields with HTML of the following form: …

Adventures in Grunt Land

In theory, deploying a Flask app with an Angular frontend should be easy – just use to ask Yeoman to create the …