JavaScript: getting started with RequireJS

Until recently, I'd mostly avoided RequireJS under the mistaken impression that it was overly complicated for my needs and only useful for large-scale applications. I was mistaken: it's actually a fairly straightforward thing that can work just fine for small apps, and more importantly it encourages an organised and structured approach to JavaScript code. The RequireJS documentation is not, in my opinion, super helpful for beginners. It feels like it's written for really smart people who can infer everything from minimal information, and doesn't do a great job of explaining the basic concepts behind RequireJS, AMD etc. Who knows, maybe »

Adding typographic quotes to Ghost

As I write this, Ghost is at version 0.4.1 and does not include the ability to convert straight ' and " quotes to their proper typographic equivalents of ‘ ’ and “ ”, nor does it convert hyphens into en– or em— dashes. Since I'd fiddled with an automatic converter for another project that also used the Showdown converter, I decided to try adding it to Ghost. It wasn't as straightforward as I expected, but even so it's not super complicated. Back up! Just in case something goes wrong, make a copy of any file you edit! So warned, let's begin. The »