Skip to content

Instantly share code, notes, and snippets.

View partharanjan's full-sized avatar
🎯
Focusing

Partha Ranjan Nayak partharanjan

🎯
Focusing
View GitHub Profile
using System;
using System.IO;
using System.Collections;
namespace Streams
{
public class MultiStream : Stream
{
ArrayList streamList = new ArrayList();
long position = 0;
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) { }
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: [
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'lib-ngx-color-spinner',
template: `
<p>
ngx-color-spinner works!
</p>
`,
styles: []
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 {