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 logger = require("firebase-functions/logger") // Optional logger from Firebase. | |
async function handler(params) { | |
return new Promise(async (resolve, reject) => { | |
try { | |
// Code here ... | |
return resolve(); | |
} catch (err) { | |
logger.warn("something wrong in handler", err); |
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
#*-- Autores. | |
# Javier Farias | |
# Vicente Abarca | |
# Karen Cifuentes | |
#*-- Dependencias. | |
import os | |
import pandas as pd | |
import matplotlib.pyplot as plt |
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
# *-- Dependencias. | |
import os | |
import pandas as pd | |
# * -- Variables globales. | |
matriz_datos: list = [] | |
""" | |
[Id Empresa,Nombre Empresa,Pais,Fundacion,Industria,Empleados,Ingresos Anuales(USD MM),Gastos Anuales(USD MM)] | |
""" |
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
async function getStudent(studentId){ | |
return new Promise(async (resolve, reject) => { | |
try { | |
// Consulta a la BD. | |
const data = await fecth("URL") | |
.then((response) => { | |
console.log("RESPONSE:", response) | |
response.json() | |
}) | |
.then((data) => { |
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
# No me hago responsable de la distribuci贸n de este codigo. | |
# * -- Dependencias. | |
import matplotlib.pyplot as plt | |
# * -- Variables globales. | |
# [Genre, Year, NA_Sales, EU_Sales, JP_Sales, Global_Sales] | |
datos_todos: list = [] | |
datos_2020: list = [] | |
datos_2017: list = [] | |
datos_publicidad: list = [] |
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
preguntas = [ | |
[ | |
"驴Cu谩l es el nombre de la mascota de la familia Simpson?", | |
[ | |
{"id": 1, "name": "Pluto", "value": False}, | |
{"id": 2, "name": "Santa's Little Helper", "value": True}, | |
{"id": 3, "name": "Snoopy", "value": False}, | |
{"id": 4, "name": "Garfield", "value": False} | |
] | |
], |
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
Show hidden characters
{ | |
"plugins": [ | |
["module-resolver", { | |
"root": ["./src"], | |
"alias": { | |
"@adapters": "./src/adapters/", | |
"@app": "./src/app/", | |
"@assets": "./src/assets/", | |
"@components": "./src/components/", | |
"@contexts": "./src/contexts/", |
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
# Contexto: se busca abrir un archivo de la carpeta data. El archivo es formado por la palabra user junto con un identificador numerico. | |
# Contexto 2: No se puede utilizar try & Catch. | |
# Contexto 3: Si el archivo no existe, el programa no cae. Pero crea un archivo del mismo nombre vacio. | |
def leer_archivo(identificador:str) -> None: | |
# Apertura del archivo. | |
nombre_archivo = "data/" + "user" + identificador + ".txt"; | |
print(f"[DEV] nombre archivo: {nombre_archivo}"); | |
# Validaci贸n de existencia del archivo. | |
Archivo = open(nombre_archivo, "a+t", encoding="utf-8"); |
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
{ | |
"presets": [ | |
"@babel/preset-env", | |
"@babel/preset-react" | |
] | |
} |
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
// Dependencias. | |
const path = require("path"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
// Exportaci贸n de configuraciones. | |
module.exports = { | |
// Archivo principal de ejecuci贸n. | |
entry: "./src/index.js", | |
// Configuraci贸n archivos de salida. |
NewerOlder