Archive for December, 2014

How to create an Angular directive for eonasdan’s Bootstrap datetime picker

I recently needed to add a DateTime picker to Process Street for use with our upcoming assignment feature. I ended up choosing eonasdan’s DateTime picker. Here’s the code to wrap it in an AngularJS directive:

…and here’s the code to include it in your AngularJS app:

How to convert a PostgreSQL UUID to bytea

I recently needed to convert a PostgreSQL UUID to bytea, and couldn’t find any quick one-liners on the web. So here it is, for your enjoyment: