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
/** | |
* 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
const Alert = Marionette.Behavior.extend( { | |
defaults: { | |
title: "Alert!", | |
message: "Not really urgent" | |
}, | |
events: { | |
"click": "emitAlert" | |
}, |
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 ) => { | |
plop.setGenerator( "module", { | |
prompts: [ | |
{ | |
type: "input", | |
name: "name", | |
message: "What is the name of your module?", | |
validate: isNotEmptyFor( "name" ), |
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 Module from "core/module"; | |
import _ from "lodash"; | |
// IMPORT MODULE FILES | |
import Model from "./calendars.model"; | |
const namespace = "calendars"; | |
Model = Model.extend( { namespace: namespace } ); |
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 Module from "core/module"; | |
import _ from "lodash"; | |
// IMPORT MODULE FILES | |
const namespace = "calendars"; | |
export default Module.extend( { | |
initialize() { |
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( { |
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( { |
OlderNewer