Profile cover photo
Profile photo
Dominic Myers
93 followers -
Dominic Myers is an old and broken-down Yorkshireman: balding and slightly rotund. Loves to code though!
Dominic Myers is an old and broken-down Yorkshireman: balding and slightly rotund. Loves to code though!

93 followers
About
Dominic's posts

Post has attachment
Getting unique values from an array of objects in Javascript
In my previous post I looked at using JSFiddle to process data from a MySQL database into DynamoDB. One of the things I fumbled with was extracting the unique dates from the array of objects: let attendance = [ { " date " : " 2015-01-07 " , " username " : "...

Post has attachment
Scratching an itch with JSFiddle
I'm presently moving the Witchford Archers site away from the LAMP stack towards a serverless architecture on AWS and so I needed to move the attendance records from MySQL to DynamoDB. Presently they look like this: CREATE TABLE IF NOT EXISTS `attendance` (...

Post has attachment
Roll your own pagination with Bootstrap and MDBootstrap
My previous post about adding MDBootstrap styling to DataTables got me thinking about pagination (that and reading about jQuery Pagination Plugins ). As such, I decided to roll my own dynamic pagination. While I got around to it I got to thinking about the ...

Post has attachment
MDB 3 DataTable Style
It's taken ages and ages but I've finally gotten around to creating a theme for DataTables which uses the lovely inputs from Material Design for Bootstrap (MDB). I've been playing with MDB for a while now and love its look and feel. I've loved DataTables fo...

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
Javascript: Finding the index of an Object in an Array
Having done this more times than is wise it's documented here so that, when it's forgotten, this will act as an aide memoire. Objects can be a bugger as they aren't equivalent unless they are actually the same thing: console . log ( { " name " : " Fred " } ...

Post has attachment
Wait while more posts are being loaded