Flatten an array of arbitrarily nested arrays of values into a flat array of values
// Both CommonJS and ES6 import syntaxes are supported
// import flattenArray from './flattenArray'
const flattenArray = require('./flattenArray')
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width" /> | |
<title>‎</title> | |
<link rel="icon" href="data:image/x-icon;base64,AA"> | |
</head> | |
<body> |
// <![CDATA[ | |
var langCodes = { | |
"af": "Afrikaans", | |
"sq": "Albanian", | |
"ar": "Arabic (Standard)", | |
"ar-dz": "Arabic (Algeria)", | |
"ar-bh": "Arabic (Bahrain)", | |
"ar-eg": "Arabic (Egypt)", | |
"ar-iq": "Arabic (Iraq)", | |
"ar-jo": "Arabic (Jordan)", |
/* global caches, fetch, self */ | |
// Fill here with your cache name-version. | |
const CACHE_NAME = 'my-cache-v1' | |
// This is the list of URLs to be cached by your Progressive Web App. | |
const CACHED_URLS = [ | |
'/', | |
'/bundle.js', | |
'/manifest.json', | |
'/register.js', |
var express = require('express') | |
var weather = require('yahoo-weather') | |
var app = express() | |
app.get('/', (req, res) => { | |
res.send('hello') | |
}) | |
app.get('/:city', (req, res) => { |
#!/usr/bin/env node | |
const fs = require('fs') | |
const path = require('path') | |
/** | |
* Converts a tree path to number | |
* | |
* BE.2.8 -> 2 + 100 * 8 + 100^2 * 0 + 100^3 * 0 | |
* |
is a set of requirements that define a microservice component pluggable in an API gateway
A Microservice component is a [microservice][microservices] that serves a [REST API][REST] behind an API Gateway. The API Gateway is, for instance, binded to domain api.example.org and it must serve resources over https. The chosen technology is [nginx][nginx] but can be any reverse proxy.
From Tom Preston-Werner's article,
Write your Readme first.
Create a README.md in your repository root folder and write there all information
Adopt README Driven Development.
is a set of requirements that define a report component pluggable in a console site
A Website component is a Single-page application embedded in a web site, for instance console.example.org.
The main web site is a container: it provides an authentication layer for users, and an access token to fetch