Clone the repository, and you're good to go and customize the variables, mixins and classes of bootstrap while keeping it intact in its own subdirectory. This will allow easy update and keep everything clean.

Under the hood, I created a Grunt task that automatically copy the variables.less file from bootstrap into your less folder while modifying the font path to be correct. This will be done on your first launch of Grunt.

But there is also a default variables.less file in case you don't want to use grunt.

I had to replace words in a text while keeping the capitalization in Javascript.

Given the text :
"It is a good burger. Or an hamburger. Burger is good".

With the replacement word "sandwich", it should become :
"It is a good sandwich. Or an hamburger. Sandwich is good".

It has 2 challenges :

Match only real words, e.g. match "burger", but not "hamburger"

Keep the capitalization of the word, e.g. "Burger" should become "Sandwich"

For the first one, we should use lookahead and lookbehind features of regular expressions, but unfortunately, in javascript there is no lookbehind, so we have to capture that part and return it with the result.

Edit: As Pol said in comments, you can use the openlayers_taxonomy module to do this. But it turns out I had to use content types as layers too, so this technique still was useful to me. Thank you Pol :)

I wanted to create layers depending on some taxonomy terms with Openlayers. But the only way to create layers with views is to add one display per layer. What if you want as many layers as terms ? Some Views trickery to the rescue !