I hereby claim:
- I am johntayl on github.
- I am johntayl (https://keybase.io/johntayl) on keybase.
- I have a public key ASCDoyCeYBvbMkyWuidtDYYCi22u5rVNxJ6_0qyRj9iorgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var blocks = []; | |
for(var i = 0; i < 10; i++) { | |
blocks.push([i]); | |
} | |
moveAOverB(3,1); | |
moveAOverB(6,1); | |
pileAOverB(1,7); |
var express = require('express'); | |
var apiRouter = express.router(); | |
//Becomes /api/user | |
apiRouter.get('/user', function (request, response) { | |
}); |
/** | |
* Validate required fields. | |
* | |
* @param {Object} requiredFields | |
* @param {Object} data | |
* | |
* @throws {MissingFieldError} | |
* @throws {InvalidFieldTypeError} | |
* | |
* @returns {Boolean} |
import { Component, OnInit } from '@angular/core'; | |
import { Router } from '@angular/router'; | |
import { AuthenticationService } from '../../shared/auth'; | |
@Component({ | |
selector: 'app-login', | |
templateUrl: './login.component.html', | |
styleUrls: ['./login.component.scss'], | |
}) |
import { Injectable } from '@angular/core'; | |
import { Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Rx'; | |
import { API } from '../api'; | |
@Injectable() | |
export class AuthenticationService { |
import { Injectable } from '@angular/core'; | |
import { Headers, Http, RequestOptionsArgs, Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Rx'; | |
/** | |
* API Class | |
* | |
* @export | |
* @class API | |
*/ |