Order a JS array by multiple properties
This JavaScript snippet presents a function that returns a function used by Array.prototype.sort
to sort an array by multiple properties.
This JavaScript snippet presents a function that returns a function used by Array.prototype.sort
to sort an array by multiple properties.
Recently GitHub Pages migrated off the Maruku markdown parser to Kramdown and deprecated support for Maruku moving forward. While some documentation was provided, it didn’t really cover some of the specific differences between the interpreters. This post covers all the issues I experienced during this transition.
Continue readingMy experiences upgrading from Maruku to Kramdown
A sorting algorithm takes a list of items and sorts them in a particular order, most commonly alphabetically or numerical.
A Fibonacci heap is a heap data structure similar to the binomial heap, only with a few modifications and a looser structure. The Fibonacci heap was designed in order to improve Dijkstra’s shortest path algorithm from O(m \log n) to O(m + n \log n) by optimising the operations used most by the algorithm. Its name derives from the fact that the Fibonacci sequence is used in the complexity analysis of its operations.
I came across a clever CSS technique, originally developed by André Luís in 2009 and later refined by Lea Verou 2 years later; applying a style when the number of siblings is a particular number. It’s definitely worth knowing.
This post demonstrates how to implement an XML sitemap in Jekyll’s Liquid templating engine. I recommend reading up on XML sitemaps here if you aren’t familiar with them.
Counting sort is a distribution sort that achieves linear time complexity given some trade-offs and provided some requirements are met.
Stack Overflow is a brilliant resource for asking software development questions. There is a certain amount of etiquette you should follow though that isn’t immediately obvious to new users. This article tries to clear this up so you can get down to asking great questions and helping the site, the industry and the web grow.