Posts with the "front-end" tag

New Theme!

I recently started using Pelican static site generator for this blog. I was drawn to it for a few reasons: It uses Jinja2 for templates, which I love. It written in python It reminds me a lot of Flask (this might be because of using Jinja2...) I've done a ...

Using vh with calc In CSS

I often have need to build layout's that vary depending on the content put in them. I can't always count on that content being the same (cough CMSs cough). It's just one of those things you have to do. One thing I'm having to do a ...

Managing Scope Using Call, Apply, and Bind

Call Calls a function, with the specified arguments passed in The first argument becomes this, the rest are passed in as regular arguments. Using call allows you to maintain the scope of this accross methods. It works like this: Here we're using prototypical inheritance to allow us to inheirit ...

JavaScript: Array's with named Properties

Adding named properties to arrays in JavaScript can be handy in a few different cases. For instance: You need a nice formatted title / description for a data set. Rather than having multiple objects you can use named properties and get away with only using one. You want to add some ...