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'; | |
import {} from 'dotenv/config' | |
const | |
bodyParser = require('body-parser'), | |
express = require('express'), | |
request = require('request'), | |
httpStatus = require('http-status'), | |
morgan = require('morgan'), | |
cluster = require('cluster'); |
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 functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const {WebhookClient} = require('dialogflow-fulfillment'); | |
process.env.DEBUG = 'dialogflow:*'; // enables lib debugging statements | |
admin.initializeApp(functions.config().firebase); | |
const db = admin.firestore(); |
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
Aalborg, Denmark | AAL | |
---|---|---|
Aalesund, Norway | AES | |
Aarhus, Denmark - Bus service | ZID | |
Aarhus, Denmark - Tirstrup | AAR | |
Aasiaat, Greenland | JEG | |
Abadan, Iran | ABD | |
Abakan, Russia | ABA | |
Abbotsford, BC | YXX | |
Aberdeen, SD | ABR | |
Aberdeen, United Kingdom | ABZ |
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 facturar (agent) { | |
let numerotickets = agent.parameters.ordentickets; | |
const precio = 20; | |
for (let i = 0; i < agent.parameters.ordentickets.lenght; i++) | |
{ | |
numerotickets += agent.parameters.ordentickets[1].number; | |
} | |
let total = precio * numerotickets; |
{
name: 'Oscar Barajas',
photo: '<URL_IMG>',
bio: 'Oscar Barajas Bio',
jobTitle: 'Foundation Layer & Frontend Developer @Platzi',
conferenceTitle: 'React y un mundo de posibilidades',
description: 'Complete bio or description',
social: [
{name: 'twitter', url: 'twitter.com/gndx'},
{name: 'instagram', url: 'instagram.com/gndx'}
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
// Enter your calendar ID below and service account JSON below | |
const calendarId = "<your_Calendar_ID>"; | |
const serviceAccount = { | |
"type": "service_account", | |
"project_id": "your_JSON_ID", | |
"private_key_id": "your_JSON_ID", | |
"private_key": "your_JSON_ID-----END PRIVATE KEY-----\n", | |
"client_email": "your_JSON_ID", | |
"client_id": "your_JSON_ID", |
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
var nombreHoja = "Hoja 1" | |
var user_id = "Ingrese_IG_ID"; //Encuentre el IG ID (únicamente números) aquí: https://codeofaninja.com/tools/find-instagram-user-id | |
var instagram_base_url = "https://www.instagram.com/graphql/query/"; | |
var following = "?query_hash=58712303d941c6855d4e888c5f0cd22f&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A24%7D" | |
var followers = "?query_hash=37479f2b8209594dde7facb0d904896a&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A24%7D" | |
var medias = "?query_hash=f2405b236d85e8296cf30347c9f08c2a&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A12%7D" | |
function contarSeguidores() { |
OlderNewer