This file contains hidden or 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
| "hooks": { | |
| "Stop": [ | |
| { | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "afplay /System/Library/Sounds/Funk.aiff" | |
| } | |
| ] | |
| } |
This file contains hidden or 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 fileMachine = Machine({ | |
| id: 'file', | |
| type: 'parallel', | |
| states: { | |
| upload: { | |
| initial: 'idle', | |
| states: { | |
| idle: { | |
| on: { | |
| INIT_UPLOAD: 'pending' |
This file contains hidden or 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 pedestrianStates = { | |
| initial: 'walk', | |
| states: { | |
| walk: { | |
| on: { | |
| PED_COUNTDOWN: 'wait' | |
| } | |
| }, | |
| wait: { | |
| on: { |
This file contains hidden or 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 pedestrianStates = { | |
| initial: 'walk', | |
| states: { | |
| walk: { | |
| on: { | |
| PED_COUNTDOWN: 'wait' | |
| } | |
| }, | |
| wait: { | |
| on: { |
This file contains hidden or 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 lightMachine = Machine({ | |
| // not a parallel machine | |
| id: 'light', | |
| initial: 'green', | |
| states: { | |
| green: { | |
| on: { TIMER: 'yellow' } | |
| }, | |
| yellow: { | |
| on: { TIMER: 'red' } |
This file contains hidden or 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
| var path = require('path'); | |
| var PACKAGE = require('./package.json'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var isProd = process.env.NODE_ENV !== 'dev'; | |
| var externals = {}; | |
| if (isProd) { | |
| externals = { | |
| react: 'react', | |
| 'react-dom': 'reactDOM', | |
| emotion: '@emotion/core', |
This file contains hidden or 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 path = require('path'); | |
| const fetchTemplateFs = require('node-tailor/lib/fetch-template'); | |
| const ACCEPT_HEADERS = [ | |
| 'accept-language', | |
| 'referer', | |
| 'user-agent', | |
| 'x-request-uri', | |
| 'x-request-host', | |
| 'cookie', |
This file contains hidden or 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 express = require('express'); | |
| const helment = require('helmet'); | |
| const Tailor = require('node-tailor'); | |
| const { fetchTemplate, filterRequestHeaders } = require('./middleware/tailor'); | |
| const tailor = new Tailor({ | |
| fetchTemplate, | |
| filterRequestHeaders, | |
| }); |
This file contains hidden or 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
| // Go to menue: | |
| // find->find in files | |
| // Switch on reg_ex button | |
| // Find: | |
| ^(.*)$ | |
| // Where: | |
| c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/* | |
| // Then click on the find button | |
| // Be careful to not click on Replace!!! |