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
'use strict'; | |
const Alexa = require("alexa-sdk"); | |
const appId = 'amzn1.ask.skill.78e25d07-06c9-488b-afc1-9dabeae510bc'; //'amzn1.echo-sdk-ams.app.your-skill-id'; | |
exports.handler = function(event, context, callback) { | |
const alexa = Alexa.handler(event, context); | |
alexa.appId = appId; | |
alexa.registerHandlers(newSessionHandler, startGameHandlers, guessGameHandlers, guessAttemptHandlers); | |
alexa.execute(); | |
}; |
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
const Alexa = require('alexa-sdk'); | |
const APP_ID = 'amzn1.ask.skill.be810433-aaae-4cd3-99fc-708e3047a807'; | |
exports.handler = (event, context, callback) => { | |
const alexa = Alexa.handler(event, context); | |
alexa.appId = APP_ID; | |
alexa.registerHandlers(handlers); | |
alexa.execute(); | |
}; |
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
// Give the service worker access to Firebase Messaging. | |
// Note that you can only use Firebase Messaging here, other Firebase libraries | |
// are not available in the service worker. | |
importScripts('https://www.gstatic.com/firebasejs/3.9.0/firebase-app.js'); | |
importScripts('https://www.gstatic.com/firebasejs/3.9.0/firebase-messaging.js'); | |
// Initialize the Firebase app in the service worker by passing in the | |
// messagingSenderId. | |
var config = { |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="image-container"> | |
<app-post *ngFor="let imageData of favoritesList" | |
[imageName]="imageData.name" | |
[displayFavoritesButton]="false" | |
> | |
</app-post> |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="image-container"> | |
<app-post *ngFor="let post of postList" | |
[imageName]="post.data.name" | |
[displayFollowButton]="false" | |
[displayFavoritesButton]="false" | |
></app-post> |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12 text-left"> | |
<button class="btn btn-primary" (click)="onLoadMore()">Load More Images</button> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="image-container"> |
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
<div class="full-frame"> | |
<div class="image-section"> | |
<img [src]="defaultImage"> | |
</div> | |
<div class="text-section"> | |
<div class="text-section-row row0"> | |
<span>{{imageData.name}}</span> | |
</div> |
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
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-8"> | |
<div class="panel panel-default"> | |
<div class="panel-body"> | |
<input type="file" (change)="onFileSelection($event)" placeholder="Upload a file" accept=".png, .jpeg, .jpg"> | |
</div> | |
</div> |
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
<li class="dropdown" *ngIf="isLoggedIn"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript: void(0)"><span class="user-name-display">{{name}}</span> | |
<span class="caret"></span></a> | |
<ul class="dropdown-menu"> | |
<li><a href="javascript:void(0)"><span class="user-title">Email: </span><span class="user-data">{{email}}</span></a></li> | |
<li><a href="javascript:void(0)"><span class="user-title">Uid: </span><span class="user-data">{{uid}}</span></a></li> | |
</ul> | |
</li> |
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
``` | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-4"> | |
<form (ngSubmit)="onSubmit(f)" #f="ngForm"> | |
<div class="form-group"> | |
<label for="email">Email</label> | |
<input type="email" name="email" id="email" ngModel class="form-control" required> | |
</div> |
NewerOlder