Skip to content

Instantly share code, notes, and snippets.

<Aggregate type="min" required="true">
<Compare metric="inequality" required="false">
<Input path="?a" />
<Input path="?b" />
</Compare>
<Aggregate type="average">
<Compare metric="equality" required="true">
<TransformInput function="lowerCase">
<TransformInput function="removeSpecialChars">
# Per-category pagination. Useful for multilingual blogs =)
# It will react, regarding your configuration in `config.yml`:
#
# paginate_per_category: true|false - activate this pagination or keep the
# default one
# default_category: "en" - determine the default category if you
# wish the root pagination to be this one
module Jekyll
module Paginate
class Pagination < Generator
@mingan
mingan / extract.js
Created September 20, 2014 17:04
Simple jQuery code to extract basic information from ArchDaily (http://www.archdaily.com/tag/vienna) to CSV
data = []
$('#st1>div').each(function (i, div) {
project = {};
$link = $(div).find('h3 a');
project['url'] = $link.attr('href');
project['name'] = $link.text();
$specs = $(div).find('.specs')
if ($specs.length) {
specs = $specs.text();
@mingan
mingan / bem.js
Created May 15, 2015 06:28
react-bem-helper wrapper to not use any prefix by default
import BEM from 'react-bem-helper';
import _o from 'lodash/object';
export default function (blockName, opts = {}) {
const def = {
name: blockName,
prefix: null
};
return new BEM(_o.merge(def, opts));
}