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
// Generar código para crear un OBJETO que contenga los nombres de los bancos como KEY y los valores de éstas sean ARREGLOS con los ruts de sus clientes ordenados alfabéticamente por nombre | |
const banks = [ | |
{ id: 1, name: 'Bank of America' }, | |
{ id: 2, name: 'Citibank' }, | |
{ id: 3, name: 'China Central Bank' }, | |
]; | |
const clients = [ | |
{ id: 1, taxNumber: '86620855', name: 'Bob Dylan' }, |
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 * as functions from 'firebase-functions'; | |
import * as admin from 'firebase-admin'; | |
import * as request from 'request-promise'; | |
const ACTIVE_KEY = 'SOME-KEY' | |
export const callableFunction = () => functions.https.onCall( (data) => { | |
const data = snapshot.data(); | |
const options = { | |
method: 'POST', | |
uri: ' https://travelcoach.api-us1.com/api/3/contacts', |
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 id="custom" class="notranslate col-xs-12"> | |
<form id="custom_address_form" data-url="/manage/Ajax/update_addressAjax.php" | |
onsubmit="saveButtonSubmitted()" | |
data-badge="<?= \ConstantsModule\BadgeTypes::LOCATION ?>" | |
data-totalSteps="<?= count($completePropertySteps); ?>" | |
data-complete="<?= $completePropertySteps['location']; ?>" | |
method="post"> | |
<input type="hidden" id="custom-longitude" name="longitude" value=""> | |
<input type="hidden" id="custom-latitude" name="latitude" value=""> | |
<input type="hidden" id="street-longitude" name="street-longitude" value=""> |
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 { Directive, Renderer2, ElementRef, HostListener, Input, OnInit } from '@angular/core'; | |
import { ActivatedRoute } from '@angular/router'; | |
import { Observable } from 'rxjs'; | |
import { Router, NavigationStart } from '@angular/router'; | |
import { filter } from 'rxjs/operators'; | |
@Directive({ | |
selector: '[Sticky-Element]' | |
}) |
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 { AngularFirestoreCollection, AngularFirestoreDocument, AngularFirestore, DocumentReference, DocumentSnapshot } from '@angular/fire/firestore'; | |
import { Productos } from '../interfaces'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class ProductosService { | |
/** Colecciones */ | |
public productosCollection: AngularFirestoreCollection<any>; | |
/** Documentos */ |