This file contains hidden or 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 taskList = new TaskList<Task>(); | |
| taskList.add(new SimpleTask(title, content)); | |
| taskList.add(new FitureTask(title, content, fiture)); | |
| taskList.startAll(); | |
| */ | |
| enum TaskStatus { |
This file contains hidden or 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
| /* | |
| Задача: | |
| Реализовать функцию delay(result, timeout) | |
| Использование: | |
| delay(42, 1000).then((result) => {console.log(result);}) | |
| */ | |
| const delay = (result, timeout) => | |
| new Promise(resolve => setTimeout(() => resolve(result), timeout)); |
This file contains hidden or 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
| {"lastUpload":"2021-02-05T12:24:30.666Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
| # STEP 1: | |
| # build with pkg | |
| FROM node:latest AS build | |
| WORKDIR /app | |
| # install dependencies with cache | |
| COPY package.json . | |
| COPY yarn.lock . | |
| RUN yarn | |
| # copy app files, build and package |
This file contains hidden or 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 SECOND = 1000, | |
| MINUTE = SECOND * 60, | |
| HOUR = MINUTE * 60, | |
| DAY = HOUR * 24; | |
| const template = document.createElement('template'); | |
| template.innerHTML = ` | |
| <style> | |
| ul { | |
| list-style: none; |