Skip to content

Instantly share code, notes, and snippets.

const flatten = (array) => {
if (array.length === 0) { return array }
return array.reduce((a, b) => {
return a.concat(Array.isArray(b) ? flatten(b) : b)
}, [])
}
@levivoelz
levivoelz / php_apache_homebrew.md
Last active January 9, 2020 08:57 — forked from DragonBe/php_apache_homebrew.md
Installation of Apache 2.4 and PHP 7.1 with Homebrew

Apache and PHP with Homebrew

The installation procedures

These installation procedures will set up your mac with PHP 7.2 and Apache 2.4.

Install Xcode command line tools (if not done yet)

xcode-select --install
@levivoelz
levivoelz / console-log.js
Created April 26, 2023 20:38
javascript console.log
console.log('hi!');