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
/* eslint no-labels: 0 */ | |
/** | |
* Flattens an array of nested arrays using iteration w/ O(n) time complexity | |
* | |
* @param {Array} array input array | |
* @returns {Array} the flattened array | |
* | |
* @example | |
* const result = flatIterative([1, [2, [3, [4]]]]); | |
* console.log(result); |
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
Attaching to kuma_web_1, kuma_worker_1, kuma_kumascript_1, kuma_api_1, kuma_mysql_1, kuma_ssr_1, kuma_elasticsearch_1, kuma_redis_1 | |
[36mweb_1 |[0m [2019-10-21 01:18:17 +0000] [1] [INFO] Starting gunicorn 19.7.1 | |
[36mweb_1 |[0m [2019-10-21 01:18:17 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1) | |
[36mweb_1 |[0m [2019-10-21 01:18:17 +0000] [1] [INFO] Using worker: meinheld.gmeinheld.MeinheldWorker | |
[36mweb_1 |[0m [2019-10-21 01:18:17 +0000] [12] [INFO] Booting worker with pid: 12 | |
[36mweb_1 |[0m [2019-10-21 01:18:17 +0000] [14] [INFO] Booting worker with pid: 14 | |
[36mweb_1 |[0m [2019-10-21 01:18:17 +0000] [16] [INFO] Booting worker with pid: 16 | |
[36mweb_1 |[0m [2019-10-21 01:18:18 +0000] [17] [INFO] Booting worker with pid: 17 | |
[36mweb_1 |[0m /usr/local/lib/python2.7/site-packages/django/template/backends/jinja2.py:6: ImportWarning: Not importing directory '/app/jinja2': missing __init__.py | |
[33mworker_1 |
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
"Tape: Async Test": { | |
"prefix": "tape", | |
"body": [ | |
"test('$1', async t => {", | |
"", | |
"\t$2", | |
"", | |
"\tt.end();", | |
"});" | |
], |
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
"WebComponent": { | |
"prefix": "wc", | |
"body": [ | |
"export class WC$1 extends HTMLElement {", | |
"", | |
"\tconstructor() {", | |
"\t\tsuper();", | |
"\t}", | |
"", | |
"\tasync connectedCallback() { }", |
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
Show hidden characters
{ | |
"extensions": [ | |
"md" | |
], | |
"color_scheme": "Packages/Predawn/predawn-markdown.tmTheme", | |
"draw_centered": true, | |
"draw_indent_guides": false, | |
"trim_trailing_white_space_on_save": false, | |
"word_wrap": true, | |
"wrap_width": 80 |
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
import { PubSub } from './pubsub.js'; | |
export class PersistentStore { | |
actions = new Map(); | |
state = {}; | |
events = new PubSub(); | |
constructor(name, params = {}) { | |
this.name = name; |