Tag: code

Code examples. I love coding, it’s what I do.

A fluid width, equal height calendar view.

We created a calendar view for work some weeks back and we wanted the cells to be equal height/width. If you don’t need it to be fluid it’s not a … Keep reading

Optimizing your WordPress site for Google PageSpeed Insight

I spent some time optimising my page-loading speed a while ago. While I’ve not yet looked into optimising the html and css or even the rendering. Since this is a … Keep reading

A very flexible full-width image grid using flex

It’s always an interesting challenge to minimize the amount of Javascript needed to solve a problem. Using smarter CSS, improve your HTML, solve the problem in a different way. This … Keep reading

Newspaper layout on the web

While the web have come a long way since spacer gifs creating more advanced layouts is still tricky at times. I found an interesting layout question on Stack Overflow some … Keep reading

Build your docker images from npm

The background, docker and gitflow At work we’re slowly moving over to use docker for all our servers. While I’m not in charge of this I’ve also been toying with moving my work … Keep reading

Spinning flower

I’m spinning around See the Pen Animation play by Johan Stenehall (@stenehall) on CodePen.

Animated toggle checkbox without javascript

:before and -moz-appearance: none This all thing could have been so much cleaner. Sadly Firefox stoped this (and very possibly also older IE). Firstly Mozilla doesn't actually hide the checkbox … Keep reading

Bot.js a pluggable node.js irc bot

Yet another bot? Yeah that’s right! I’m definitely reinventing the wheel here. There’s already lots of great bots, even great node.js bots. But that’s not the point. I’m just doing … Keep reading

dust.js a javascript template engine

Node.js and Client side dust.js seems to be quite similare to mustache but with some added niceness. It also playes nice with node.js and shouldn't be to hard to get … Keep reading

Write using ruby and rake – Jekyll again

Easier deploy This is a small task that simply deploys the current changes to github. desc ‘deploy to github’ task :deploy do puts ‘deploying’ sh “git add . && git … Keep reading