Skip to content

Instantly share code, notes, and snippets.

@christianezeani
christianezeani / currency_symbols.php
Created October 7, 2022 14:59 — forked from gibbs/currency_symbols.php
An array of currency symbols as HTML entities
<?php
$currency_symbols = array(
'AED' => '&#1583;.&#1573;', // ?
'AFN' => '&#65;&#102;',
'ALL' => '&#76;&#101;&#107;',
'AMD' => '',
'ANG' => '&#402;',
'AOA' => '&#75;&#122;', // ?
'ARS' => '&#36;',
'AUD' => '&#36;',
@christianezeani
christianezeani / .babelrc
Created October 4, 2019 16:22 — forked from thejmazz/.babelrc
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@christianezeani
christianezeani / flatten-array.js
Last active April 16, 2019 11:36
How to flatten an array of arbitrarily nested arrays of integers into a flat array of integers
let numberArrayList = [[1,2,3], [4,5,6], [7,8,9], [10,11,12]];
let flattenedArray = numberArrayList.reduce((a, b) => (a || []).concat(b));
console.log(flattenedArray);