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
www.mysite.com, mysite.com { | |
proxy / webapp:3000 { | |
proxy_header Host {host} | |
proxy_header X-Real-IP {remote} | |
proxy_header X-Forwarded-Proto {scheme} | |
} | |
gzip | |
tls [email protected] | |
} |
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 fs = require("fs"); | |
const path = require("path"); | |
const del = require("del"); | |
const util = require("util"); | |
const exec = util.promisify(require("child_process").exec); | |
const readFile = util.promisify(fs.readFile); | |
const writeOutput = require("./writeOutput"); | |
const express = require("express"); | |
const axios = require("axios"); | |
const app = express(); |
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
var AWS = require('aws-sdk'); | |
var region = 'us-east-1'; // e.g. us-west-1 | |
var domain = 'search-boringgrowth-production-i6qoaz4c44rfxl25pkiwtvwgvm.us-east-1.es.amazonaws.com'; // e.g. search-domain.region.es.amazonaws.com | |
var index = 'lukas'; | |
var type = '_doc'; | |
var id = '1'; | |
var json = { |
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
API: | |
Type: AWS::ApiGateway::RestApi | |
Properties: | |
Name: | |
Fn::Join: | |
- " " | |
- - Restorer Plambda | |
- Ref: Stage | |
Description: Experimental Restorer Play app in Lambda |
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 = { | |
env: { | |
browser: true, | |
es6: true, | |
node: true, | |
commonjs: true, | |
}, | |
extends: ["eslint:recommended", "plugin:react/recommended"], | |
globals: { | |
Atomics: "readonly", |
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
/* | |
In package.json: | |
"postinstall": "node ./extras/post_install_script.js" | |
*/ | |
const fs = require("fs"); | |
const path = require("path"); | |
const _filePath = path.join(__dirname, "../node_modules/react-scripts/config/webpackDevServer.config.js"); |
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
version: 0.2 | |
env: | |
variables: | |
PORT: "2000" | |
REACT_APP_ENV: "production" | |
REACT_APP_TITLE: "My App" | |
REACT_APP_FAVICON: "favicon.ico" | |
REACT_APP_LOGO_TYPE: "vertical" | |
phases: | |
install: |
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 min = (arr) => (arr.length === 0 ? 0 : Math.min(...arr)); | |
const max = (arr) => (arr.length === 0 ? 0 : Math.max(...arr)); | |
export function nodesBBox({editor, nodes}) { | |
const left = min(nodes.map((node) => node.position[0])); | |
const top = min(nodes.map((node) => node.position[1])); | |
const right = max(nodes.map((node) => node.position[0] + editor.view.nodes.get(node).el.clientWidth)); | |
const bottom = max(nodes.map((node) => node.position[1] + editor.view.nodes.get(node).el.clientHeight)); | |
return { |
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
// sample usage: | |
// uuid npm v3.3.2 | |
// any-base npm v1.1.0 | |
// const ___getId = require('./getId'); | |
// const branchId = `b-${(await ___getId({})).id}`; | |
const uuid = require('uuid'); | |
const anyBase = require('any-base'); |
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
/* eslint-disable max-lines */ | |
const isoCountries = { | |
'AF': 'Afghanistan', | |
'AX': 'Aland Islands', | |
'AL': 'Albania', | |
'DZ': 'Algeria', | |
'AS': 'American Samoa', | |
'AD': 'Andorra', | |
'AO': 'Angola', | |
'AI': 'Anguilla', |
NewerOlder