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. | |
| # |
| -- [Gist](https://gist.github.com/fibo/6592631) | |
| -- | |
| -- Put this login.sql file in your current dir, or any dir you add to the SQLPATH env var | |
| -- Make SQL prompt show database name so I know where I am (thanks to Tom Kyte for this) | |
| COLUMN global_name new_value gname | |
| SET TERMOUT OFF | |
| SELECT LOWER(USER) || '@' || global_name || '> ' AS global_name FROM global_name; | |
| SET SQLPROMPT '&gname' | |
| SET TERMOUT ON |
| # [Gist](https://gist.github.com/fibo/5934269) | |
| # | |
| # Deps: | |
| # npm install express --save-dev | |
| # npm install nodemon -g | |
| # npm install coffee-script -g | |
| # | |
| # Run it with `nodemon express.coffee` | |
| express = require 'express' |
| # [Gist](https://gist.github.com/fibo/5901819) | |
| # | |
| ## How to launch | |
| # $ prove oracle.t | |
| use strict; | |
| use warnings; | |
| use DBI; | |
| use File::Spec; | |
| use Test::More; |
| use strict; | |
| use Math::Prime::XS ':all'; | |
| my $l = $ARGV[0]; | |
| my @primes = primes($l); | |
| my $p1 = $primes[-2]; | |
| my $p2 = pop @primes; |
| import Data.List | |
| import Debug.Trace | |
| -- primes = 2 : 3 : zipWith getPrime primes (tail primes) | |
| checkZeros :: [Int] -> Bool | |
| checkZeros ms = any isZero ms | |
| where isZero 0 = True | |
| isZero _ = False | |
| calculateMods :: Int -> [Int] -> [Int] |