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
| using System; | |
| using System.IO; | |
| using System.Collections; | |
| namespace Streams | |
| { | |
| public class MultiStream : Stream | |
| { | |
| ArrayList streamList = new ArrayList(); | |
| long position = 0; |
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
| import { Injectable } from '@angular/core'; | |
| import { HttpInterceptor, HttpRequest, HttpHandler, HttpResponse } from '@angular/common/http'; | |
| import { CacheService } from '../services/cache.service'; | |
| import { of } from 'rxjs'; | |
| import { tap } from 'rxjs/operators'; | |
| @Injectable() | |
| export class CacheHttpInterceptor implements HttpInterceptor { | |
| constructor(private cache: CacheService) { } |
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
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule } from '@angular/core'; | |
| import { AppComponent } from './app.component'; | |
| import { NgxColorSpinnerModule } from 'projects/ngx-color-spinner/src/public_api'; | |
| @NgModule({ | |
| declarations: [ | |
| AppComponent | |
| ], | |
| imports: [ |
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
| import { Component, OnInit } from '@angular/core'; | |
| @Component({ | |
| selector: 'lib-ngx-color-spinner', | |
| template: ` | |
| <p> | |
| ngx-color-spinner works! | |
| </p> | |
| `, | |
| styles: [] |
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
| import { Component, OnInit, OnDestroy } from '@angular/core'; | |
| import { Subscription, interval } from 'rxjs'; | |
| @Component({ | |
| selector: 'ngx-color-spinner', | |
| template: `<mat-spinner [color]="_color"></mat-spinner>`, | |
| styles: [] | |
| }) | |
| export class NgxColorSpinnerComponent implements OnInit, OnDestroy { |