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
let ROWS = 6; | |
let COLS = 6; | |
class Board { | |
constructor(props) { | |
this.cells = []; | |
for (let i = 0; i < ROWS; i++) { | |
for (let j = 0; j < COLS; j++) { | |
if (!this.cells[i]) { | |
this.cells[i] = []; |
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 express = require('express'); | |
const path = require('path'); | |
const swaggerCombine = require('swagger-combine'); | |
const config = { | |
swagger: '2.0', | |
info: { | |
title: 'v4 API', | |
version: { |
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
{ | |
swagger: "2.0", | |
info: { | |
title: "ClimaCell v4 API", | |
version: "1.0.0" | |
}, | |
paths: { | |
/locations/{locationId}: { | |
get: { | |
description: "Returns an location based on a single ID", |
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
https://gist.github.com/e16bb804d2bc9a95a4a9c0e2efe15024 |
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
let counter = 1; | |
function doInDelay(counterRecieved) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if (counter > counterRecieved) { | |
return; | |
} | |
resolve("Hi") //do filter | |
}, 2000) |
OlderNewer