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 { Http } from '@angular/http'; | |
| import { Config } from '../Config'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import 'rxjs/Rx'; | |
| @Injectable() | |
| export class Request { | |
| constructor(public http: Http) |
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
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
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
| <script type="text/javascript"> | |
| // First let's create an array of JavaScript Date | |
| // objects. | |
| // More info about the Date class: | |
| // http://w3schools.com/js/js_obj_date.asp | |
| var dates = [ | |
| new Date(2010, 4, 10, 10, 07, 16), | |
| new Date(2010, 4, 8, 9, 16, 09), | |
| new Date(2010, 3, 30, 0, 15, 49), |