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 request = require('request'); | |
const fs = require('fs'); | |
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0; | |
const p12 = fs.readFileSync(__dirname + '/10537945-1.p12'); | |
function echo() { | |
const data = { EchoRequest: 'furs' }; |
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
private loadComponentData() { | |
this.dataService | |
.getUserProfileObservable() | |
.pipe(takeUntil(this.unsubscribe$)) | |
.subscribe((userProfile) => | |
this.ngZone.run(() => { | |
this.userProfile = userProfile; | |
this.cdr.markForCheck(); | |
}) | |
); |
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
{ | |
... | |
"scripts": { | |
... | |
"start": "node dist/server", | |
"deploy": "ng build --prod && npm run build:ssr && gcloud app deploy" | |
}, | |
"dependencies": { | |
... | |
} |
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
# Copyright 2018, Google LLC. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
<ion-header [scrollHide]="headerScrollConfig" [scrollContent]="pageContent"> | |
... | |
</ion-header> | |
<ion-content #pageContent fullscreen> | |
... | |
</ion-content> | |
<ion-footer [scrollHide]="footerScrollConfig" [scrollContent]="pageContent"> | |
... |
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} from '@angular/core'; | |
import { ScrollHideConfig } from '../../directives/scroll-hide'; | |
@Component({ | |
selector: 'page-explore', | |
templateUrl: 'explore.html' | |
}) | |
export class ExplorePage { | |
footerScrollConfig: ScrollHideConfig = { cssProperty: 'margin-bottom', maxValue: undefined }; |
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
@NgModule({ | |
declarations: [ | |
... | |
ScrollHideDirective | |
], | |
imports: [ | |
... | |
IonicModule.forRoot(MyApp, {}) | |
], | |
bootstrap: [IonicApp], |
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 { Content } from 'ionic-angular'; | |
import { Directive, ElementRef, Input, Renderer2, SimpleChanges } from '@angular/core'; | |
@Directive({ | |
selector: '[scrollHide]' | |
}) | |
export class ScrollHideDirective { | |
@Input('scrollHide') config: ScrollHideConfig; |
This file has been truncated, but you can view the full file.
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
/******/ (function(modules) { // webpackBootstrap | |
/******/ // install a JSONP callback for chunk loading | |
/******/ var parentJsonpFunction = window["webpackJsonp"]; | |
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) { | |
/******/ // add "moreModules" to the modules object, | |
/******/ // then flag all "chunkIds" as loaded and fire callback | |
/******/ var moduleId, chunkId, i = 0, resolves = [], result; | |
/******/ for(;i < chunkIds.length; i++) { | |
/******/ chunkId = chunkIds[i]; | |
/******/ if(installedChunks[chunkId]) { |
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 functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
/** | |
This is the cloud function that responds to http request | |
https://{your-app}.cloudfunctions.net/getNearbyPoints?lat=46.553955&lon=15.645714&max=10 | |
*/ | |
exports.getNearbyPoints = functions.https.onRequest((req, res) => { | |
const lat = req.query.lat; |
NewerOlder