A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
/** | |
* First letter in uppercase of each word of a given string | |
*/ | |
function UppercasefirstLetterString(str) { | |
var arr = str.toLowerCase().split(' '); | |
return arr.map( function(letter) { | |
return letter[0].toUpperCase() + letter.slice(1); |
function largestNumberOfArrays(array) { | |
return array.map( function (subArray){ | |
return subArray.reduce( function (previous, current) { | |
return (current > previous) ? current : previous; | |
}); |
/** | |
* Confirm endings | |
* | |
* Check if a string ends with a given target | |
* | |
* @param String string | |
* @param String target A target to match with the given string | |
*/ | |
function confirmEnding(string, target) { | |
var $ = require('jquery'); | |
var select = require('dom-select'); | |
/** | |
* LoadMore | |
*/ | |
function LoadMore(element) { |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
/** | |
* Color variations | |
* | |
* Each colors used in the site. | |
* | |
* @uses the_color( $key, $value ) to retrieve color value | |
* @type nested map | |
* @see http://erskinedesign.com/blog/friendlier-colour-names-sass-maps/ | |
* @see http://www.colorhexa.com/ to pickup color name | |
* @author Jérémy Levron <[email protected]> |
I love when my folds are collapsed and I would like to save this state. So BufferScrool seems to do the job.
Before I start, I hope you use Package Control, it's very usefull when you working with Sublime Text.
BufferScroll is a very cool package for Sublime Text, it saves your folds, cursor state and more.
The sublime-project
is a file that contains all settings for a specific project. The file as to be loaded each time you relaunch Sublime Text.
To avoid that, we are going to launch Sublime Text from terminal with a parameter that is this sublime-project
file name.
Sublime Text bring a CLI tool subl
, but we can't used the CLI tool as it is. To use it, we need to do a symbolic link.
Assuming you've placed Sublime Text in the applications folder
To remind me the shorthand syntax of the border property, my technique was to think about Metal Gear Solid.
Because, 1px solid black is like Metal Gear Solid, isn't it? 😅