Author Archives: James Reuben Knowles

ui-bootstrap Oddity

Workaround for an oddity encountered in ui.bootstrap’s tab element. Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Quick Jasmine 2 Reference

Summary of Jasmine commands. Continue reading

Posted in Programming | Tagged , , , , , , , | Leave a comment

Regular Expression for Validating Floating-Point Numbers

Validating a floating-point number using a regular expression. Continue reading

Posted in Programming | Tagged , , , , , , | Leave a comment

Set Background Colour with AngularJS

From the “I can’t believe I had to look it up” department: One can use ngStyle to programmatically set the background colour of an element. This is arbitrary ugly code that demonstrates the concept:

Posted in Uncategorized | Leave a comment

AngularJS Directives: Expression or Interpolation?

A partial list of AngularJS directives indicating whether they accept an expression or require interpolation. Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Django and AngularJS POST

Out of the box Django 1.4 does not accept dated POSTed from AngularJS. This is a solution. Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Initializing Objects with $.extend()

If jQuery is available, $.extend() can be useful “quick and dirty” method for initializing an object with defaults, while allowing for the caller to provide values to override the defaults. The advantage is simplicity. One disadvantage is that there is … Continue reading

Posted in Uncategorized | Leave a comment