Makes little scrolly text jiffs in Flywheel colors.
- imagemagick
brew install imagemagick - gifsicle
brew install gifsicle - u r on a mac
- To list the available local fonts to you run
identify -list font
| export class CustomPromise { | |
| constructor (executor) { | |
| if (typeof executor !== 'function'){ | |
| throw new Error('You must pass a function') | |
| } | |
| // Etat de notre promesse | |
| let _state = State.PENDING; | |
| this.setState = setter(_state) | |
| this.getState = getter(_state) |
| /** | |
| * A generic String value mapper | |
| * @param {String} value - the value to mapp | |
| * @param {Array <{re: Regexp, val: {*}}>} mappings - a list of regexp with their mapped Value | |
| * @param {*} defaultValue | |
| */ | |
| function genMapper ( value, mappings , defaultValue){ | |
| const foundValue = mappings.find(({re, val}) => str.match(re)) | |
| return foundValue ? foundValue.value : defaultValue | |
| } |
| const DEFAULT_FLAG = '--options=' | |
| /** | |
| * Allow to pass additional flag in command line | |
| * @param {String} flag - optionnal flag used in command line | |
| * | |
| * Flags can be passed : | |
| * - either when defining the script in package.json : | |
| * "myscript": "somecommand param --options=opt1" | |
| * - when calling the script adding '--' |
| /** | |
| * dataservice Factory | |
| * @namespace Factories | |
| * @author Wandrille Verlut <[email protected]> | |
| */ | |
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('app') |