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-disable no-console */ | |
/* eslint-disable no-unused-vars */ | |
/* eslint-disable prefer-promise-reject-errors */ | |
/* eslint-disable jest/no-focused-tests */ | |
/* eslint-disable jest/no-commented-out-tests */ | |
/* eslint-disable jest/no-disabled-tests */ | |
import { | |
promiseFnRetry, | |
retryWhenToPromise, | |
promiseRetryRx, |
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
// [0] файл program.java | |
// стартовий файл. запускає форму StartForm [1] в якій можна обрати режим 'сервера' або режим 'клієнта' | |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
namespace ChatRSA | |
{ |
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
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
namespace ChatRSA | |
{ | |
class Program | |
{ | |
static void Main() | |
{ |
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 fetchMachine = Machine({ | |
id: 'airship', | |
initial: 'idle', | |
context: { | |
fuel: 2000, | |
damage: 0 | |
}, | |
states: { | |
idle: { |
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
/** | |
* Tag CRUD Effects | |
*/ | |
@Injectable() | |
export class TagEffects { | |
/** | |
* Load tags into store with GraphQL | |
* based on search criteria and pagination | |
*/ |
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 { Component, AfterContentInit, ViewChild, Input, Output, EventEmitter, OnChanges, SimpleChanges, ChangeDetectionStrategy, OnDestroy } from '@angular/core'; | |
import Quill from 'quill' | |
import { Subject, Subscription } from 'rxjs'; | |
import { debounceTime } from 'rxjs/operators'; | |
@Component({ | |
selector: 'm22-quill-editor', | |
template: ` | |
<div #quillDiv ></div> |
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
// package.json test script | |
"test:watch": "mocha --extension spec.js --recursive --colors --full-trace --require test/index.js --watch" | |
"test": "mocha --extension spec.js --recursive --colors --full-trace --require test/index.js" | |
//.vscode/launch.json for debug | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Mocha Tests", |
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
// use function `generate` to make mongodb compatible objectids | |
// inspired by https://github.com/williamkapke/bson-objectid | |
const MACHINE_ID = Math.floor(Math.random() * 0xffffff); | |
const pid = Math.floor(Math.random() * 100000) % 0xffff; | |
let index = Math.floor(Math.random() * 0xFFFFFF); | |
function hex(length, n) { | |
n = n.toString(16); | |
return n.length === length ? n : "00000000".substring(n.length, length) + n; | |
} |
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
// use function `generate` to make mongodb compatible objectids | |
// inspired by https://github.com/williamkapke/bson-objectid | |
var MACHINE_ID = Math.floor(Math.random() * 0xffffff); | |
var index = parseInt(Math.random() * 0xFFFFFF, 10); | |
var pid = | |
(typeof process === "undefined" || typeof process.pid !== "number" | |
? Math.floor(Math.random() * 100000) | |
: process.pid) % 0xffff; |
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
0 docs | |
https://nodejs.org/uk/ | |
https://nodejs.org/dist/latest-v8.x/docs/api/ | |
1 simple app | |
npm init -y | git init | |
express | |
touch index.js .gitignore | |
2 tools |
NewerOlder