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
{ | |
"name": "PWA Full Name 2", | |
"short_name": "PWA Short name 2", | |
"display": "standalone", | |
"background_color": "#3E4EB8", | |
"theme_color": "#2F3BA2", | |
"start_url": "https://s.codepen.io/jan-j/debug/ZqrxEO/gaMeYZvWQmzM", | |
"icons": [ | |
{ | |
"src": "https://pbs.twimg.com/profile_images/837725662886637568/Bhxc7Yow_400x400.jpg", |
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 path = require('path'); | |
const fs = require('fs'); | |
const Canvas = require('canvas'); | |
const targetWidth = 6000; | |
const targetHeight = 50; | |
const deltaX = 50; | |
const sourceWidth = deltaX * 20 | |
const sourceHeight = targetHeight * 20; |
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
/** | |
* Applies the callback to the elements of the given arrays, then merge all results to one array | |
* | |
* @param callable $callback Callback function to run for each element in each array. | |
* @param array $array1 An array to run through the callback function. | |
* @param array $array,... Variable list of array arguments to run through the callback function. | |
* @return array Returns an array containing all the elements of array1 after | |
* applying the callback function to each one, casting them to arrays and merging together. | |
*/ | |
function array_flatmap() |
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
/** | |
* @param array $array | |
* @param string|null $keyPrefix | |
* @param string $format 'dot'|'form' | |
* @return array | |
*/ | |
function array_flatten_keys($array, $keyPrefix = null, $format = 'dot') | |
{ | |
$newArray = array(); |
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
<?php | |
const SPACING_X = 1; | |
const SPACING_Y = 0; | |
const JOINT_CHAR = '+'; | |
const LINE_X_CHAR = '-'; | |
const LINE_Y_CHAR = '|'; | |
$table = array( | |
array( |