This file contains 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
Route::group(['middleware' => 'jwt.auth'], function() { | |
Route::group(['prefix' => 'api', function() { | |
Route::resource('authenticate', 'AuthenticateController', ['only' => ['index']]); | |
Route::post('authenticate', 'AuthenticateController@authenticate'); | |
}); | |
}); |
This file contains 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> | |
<head> | |
<title>Parse Google</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
</head> | |
<body> | |
<ul id="links"></ul> |
This file contains 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 {Http, HTTP_PROVIDERS} from 'angular2/http'; | |
import {Injector} from 'angular2/core' | |
import {Control} from 'angular2/common'; | |
import 'rxjs/Rx'; | |
export class UsernameEmailValidator { | |
constructor() {} | |
static checkUser(control: Control) { |
This file contains 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
function (user, context, callback) { | |
context.idToken["http://your-domain/azure_photo"] = user.azure_photo; | |
callback(null, user, context); | |
} |
This file contains 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 { | |
HttpInterceptor, | |
HttpRequest, | |
HttpResponse, | |
HttpHandler, | |
HttpEvent | |
} from '@angular/common/http'; | |
import 'rxjs/add/operator/map'; | |
@Injectable() |
This file contains 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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Sign In with Auth0</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
</head> | |
<style> |
This file contains 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
type Speaker { | |
firstName: String! | |
lastName: String! | |
email: String! | |
avatarLink: String | |
shortBio: String | |
fullBio: String | |
status: String | |
location: SpeakerLocation | |
shouldDisplayLocation: Boolean |
This file contains 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
const { ApolloServer, gql } = require('apollo-server'); | |
const parseFields = require('graphql-parse-fields'); | |
const typeDefs = gql` | |
type User { | |
firstName: String | |
lastName: String | |
age: Int | |
} |
This file contains 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
{ | |
"editor.acceptSuggestionOnEnter": "off", | |
"editor.hover.enabled": false, | |
"editor.quickSuggestions": false, | |
"editor.quickSuggestionsDelay": 10, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.suggestOnTriggerCharacters": false, | |
"editor.wordBasedSuggestions": false | |
} |
This file contains 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
[ | |
{ | |
"id":"1", | |
"title":"20 Foot Equipment Trailer", | |
"description":"2013 rainbow trailer 20 feet x 82 inch deck area, two 5,000 lb axels, electric brakes, two pull out ramps, break away box, spare tire.", | |
"price":6000, | |
"posted":"2015-10-24", | |
"contact": { | |
"name":"John Doe", | |
"phone":"(555) 555-5555", |
OlderNewer