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> |
/* 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', |
#!/bin/bash | |
# | |
# [Gist](https://gist.github.com/fibo/6807322) | |
# | |
## Configuration | |
# | |
# Don' t forget to edit filename and query, see below. | |
# |
// <![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)", |
use strict; | |
use Math::Prime::XS ':all'; | |
my $l = $ARGV[0]; | |
my @primes = primes($l); | |
my $p1 = $primes[-2]; | |
my $p2 = pop @primes; |
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 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