четверг, 24 декабря 2020 г.

Circularbuffer

 https://github.com/vinsidious/circularbuffer

https://github.com/gwtw/ts-circular-buffer

https://www.npmjs.com/search?q=circular+buffer

https://www.npmjs.com/package/circular-buffer

https://www.npmjs.com/package/cyclist

https://www.npmjs.com/package/CBuffer

https://www.npmjs.com/package/cbuffer

Serialization, Deserialization

https://stackoverflow.com/questions/16261119/typescript-objects-serialization

https://stackoverflow.com/questions/29758765/json-to-typescript-class-instance

https://stackoverflow.com/questions/29214239/typescript-serialize-class-objects

https://stackoverflow.com/questions/49083936/typescript-serialization

https://stackoverflow.com/questions/40421100/how-to-parse-a-json-object-to-a-typescript-object

https://habr.com/ru/post/428812/

https://www.npmjs.com/package/ts-serializable


RxJS, Installation

https://coursetro.com/posts/code/147/How-to-Install-RxJS---Setting-up-a-Development-Environment

вторник, 15 декабря 2020 г.

Angular, WebSockets, DanWahlin

 https://github.com/DanWahlin/Angular-WebSockets


Typescript, Classes

class HelloWorld{
    constructor(
        private hellostring,
        private worldstring
    ){}
    toString = (): string => `Typeof:${typeof this} ${this.hello} ${this.world}`;
}
let hw = new HelloWorld('hello''world');

console.log(hw.toString());

class Point {
    constructor(
        private xnumber
        private ynumber)
        {}    
    getDist = () : number => Math.sqrt(this.x * this.x + this.y * this.y);
    toString = () : string =>
        `Typeof: ${typeof this} x: ${this.x} y: ${this.y} dist: ${this.getDist()}`
}
let point = new Point(3,2);
console.log(point.toString());