Notes of a Pragmatic Geek

by Daniel Khan

August, 2013

Fixing line-breaks and appearance in embedded gists

Starting with wordpress I wanted to embed gists, so I installed the Easy Gist Embed plugin┬áthat let’s you simply paste the URL to your gist into a post. Unfortunately the line heights were much to large and the whole thing looked just wrong. Below you find the CSS that fixed that for me.

node.js – how exports and module.exports works

When starting with node.js the way modules work seems a little awkward. Especially the difference between exports and module.exports causes much confusion. Somehow we tend to think that exports is the global/important variable and module.exports is something local to the module and has less importance.