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
<div class="loader"> | |
<ul class="hexagon-container"> | |
<li class="hexagon hex_1"></li> | |
<li class="hexagon hex_2"></li> | |
<li class="hexagon hex_3"></li> | |
<li class="hexagon hex_4"></li> | |
<li class="hexagon hex_5"></li> | |
<li class="hexagon hex_6"></li> | |
<li class="hexagon hex_7"></li> | |
</ul> |
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
{ | |
"scripts": { | |
"dev": "webpack-dev-server --port 3000 --hot --inline --history-api-fallback --colors --progress", | |
"build": "NODE_ENV=production webpack -p --optimize-occurence-order --optimize-dedupe --output-public-path 'http://cdn.domain.com/assets/[hash]/'", | |
"release": "npm run build && bin/deploy" | |
}, | |
"dependencies": { | |
"axios": "0.12.0", | |
"classnames": "2.2.5", | |
"qrcode.react": "0.6.1", |
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
ROYAL_MAIL_API_CLIENT_ID= | |
ROYAL_MAIL_API_CLIENT_SECRET= | |
ROYAL_MAIL_API_APP_ID= | |
ROYAL_MAIL_API_USER_ID= | |
ROYAL_MAIL_API_PASSWORD= |
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 lists = [ | |
[1, 2], | |
[3, 4], | |
[5], | |
[7] | |
]; | |
const combinations = lists | |
.reduce((all, current) => current | |
.map(item => all.map(g => g.concat([item]))) |
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 fs = require('node:fs'); | |
const fsPromise = require('node:fs/promises'); | |
const { https } = require('follow-redirects'); | |
const { glob } = require('glob'); | |
async function download(url, toFile) { | |
const file = fs.createWriteStream(toFile); | |
await new Promise((resovle, reject) => { | |
console.log('downloading file:', url); |
OlderNewer