Skip to content

Instantly share code, notes, and snippets.

Gaston Sanchez gaastonsr

View GitHub Profile
@gaastonsr
gaastonsr / MTMR.json
Last active May 8, 2019
MTMR settings
View MTMR.json
[
// Escape key.
{
"type": "escape",
"width": 64,
"align": "left"
},
// Keyboard illumination.
{
"type": "illuminationDown",
View flattenArray.js
const assert = require('assert');
function flattenArray(array) {
return array.reduce((acc, current) => {
if (Array.isArray(current)) {
return acc.concat(flattenArray(current));
}
return acc.concat([current]);
}, []);
You can’t perform that action at this time.