Tag: gist

Code examples presented on gist.

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

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

Bluetooth problems in Yosemite

I recently ran into some very weird problems with my bluetooth trackpad and keyboard in OS X. Google told me to reboot, resetting SMC or replacing batteries but nothing worked. … Keep reading

Broken MySQL on Mavericks

Can’t find file: ‘./mysql/plugin.frm’ (errno: 13 – Permission denied) The reason this happens seems to be that some upgrade process either in brew or in os x changes the permissions … 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

Heroku uses a very old version of node.js

But there’s a solution I spent a while wondering why my code that ran so good localy wouldn’t run on heroku. I couldn’t figure it out when I suddenly noticed … Keep reading

My currenct Sublime Text 3 configuration

Sublime Text 3, with Phoenix Dark, Base16 color scheme and Source Code Pro. Package controll To install the theme and color scheme I used Sublime Package Control. Since things have … 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

on{X} for android

New Nexus 7, time for a Nexus 4? I recently bought an Nexus 7 to play with and had to try one of the best products created by Microsoft, ever. … Keep reading

Https redirect for htaccess

Simplest way to redirect directly in htaccess Sometimes you don’t have access to the server and have to do a redirect in a .htaccess file. RewriteEngine on RewriteCond %{HTTPS} !^on$ … Keep reading