A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
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.Threading; | |
| static class Program { | |
| static void Main() { | |
| Console.Write("Performing some task... "); | |
| using (var progress = new ProgressBar()) { | |
| for (int i = 0; i <= 100; i++) { | |
| progress.Report((double) i / 100); |
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 { Observable } from 'rxjs' | |
| import 'rxjs/add/observable/of' | |
| import 'rxjs/add/operator/map' | |
| import 'rxjs/add/operator/merge' | |
| import { createAction } from 'redux-actions' | |
| export const SESSION_STORAGE_KEY = 'SESSION_STORAGE_KEY' | |
| export const GET_SESSION_REQUESTED = 'payout/GET_SESSION_REQUESTED' | |
| export const GET_SESSION_FOUND = 'payout/GET_SESSION_FOUND' |
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 { Observable } from 'rxjs' | |
| import 'rxjs/add/observable/of' | |
| import 'rxjs/add/operator/map' | |
| import 'rxjs/add/operator/merge' | |
| import { createAction } from 'redux-actions' | |
| export const SESSION_STORAGE_KEY = 'SESSION_STORAGE_KEY' | |
| export const GET_SESSION_REQUESTED = 'payout/GET_SESSION_REQUESTED' | |
| export const GET_SESSION_FOUND = 'payout/GET_SESSION_FOUND' |
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 {Http} from "@angular/http"; | |
| import { LocalCacheService } from "./local-cache.service"; | |
| @Component({ | |
| selector: 'app-example', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.scss'] | |
| }) | |
| export class ExampleComponent implements OnInit, OnDestroy { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>HMAC-SHA256 Example</title> | |
| </head> | |
| <body> | |
| <script src="http://crypto.stanford.edu/sjcl/sjcl.js"></script> | |
| <script> | |
| var sharedSecret, query, signature, hmac, xhr; |