This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.block { | |
text-align: justify; | |
background-color: #DDD; | |
border: 2px black solid; | |
border-radius: 10px; | |
} | |
.lightbox { | |
width: 90px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# File compressor plugin for jekyll | |
# ================================= | |
# | |
# By [mytharcher](https://github.com/mytharcher) | |
# 2012-05-20 | |
# | |
# Updated by [nicoespeon](https://github.com/nicoespeon) | |
# 2013-04-12 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-keyframes reveal { | |
0% { | |
left: 0; | |
} | |
100% { | |
left: 100%; | |
} | |
} | |
.container { | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 Generators | |
class Pagination < Generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Tu ne peux pas ne pas avoir d’effets de bord, sinon il ne se passe absolument rien. | |
* | |
* En revanche, la prog fonctionnelle préconise de limiter ça au maximum. | |
* | |
* Du coup c’est possible de le faire, mais généralement l’effet de bord qui log est isolé à un seul endroit (= une fonction impure). | |
* | |
* Il est assez simple de transformer une fonction impure en fonction pure : il suffit de l’englober dans une closure. | |
**/ | |
function impure$ () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = ( plop ) => { | |
// We declare a new generator called "module" | |
plop.setGenerator( "module", { | |
// Succintly describes what generator does. | |
description: "Create a new module", | |
// Get inputs from the user. | |
// That's Inquirer.js doing the job behind the hood. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {trimRight, isEmpty} from "lodash"; | |
const ensurePlural = ( text ) => trimRight( text, "s" ) + "s"; | |
const isNotEmptyFor = ( name ) => { | |
return ( value ) => { | |
if ( isEmpty( value ) ) return name + " is required"; | |
return true; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const modulePath = "app/modules/{{camelCase name}}.js"; | |
module.exports = ( plop ) => { | |
plop.setGenerator( "model", { | |
// … | |
actions: [ | |
// Add a new model + tests boilerplate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* TODO - Describe what your model does. | |
* | |
* @class {{pascalCase name}}.Model | |
* @module {{pascalCase name}} | |
* @constructor | |
*/ | |
import {Model} from "backbone"; | |
export default Model.extend( { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* TODO - Describe what your model does. | |
* | |
* @class Calendars.Model | |
* @module Calendars | |
* @constructor | |
*/ | |
import {Model} from "backbone"; | |
export default Model.extend( { |
OlderNewer