This file contains 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 json | |
# Absolute path of your file .ts where the endpoints are located (example: '/home/dev/project/app/driver/src/driver.controller.ts') | |
file_path = '' | |
postman_collection = { | |
"info": { | |
"name": "NestJS Endpoints Collection", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [] | |
} |
This file contains 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 server"; | |
import { cookies } from "next/headers"; | |
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3"; | |
import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; | |
import crypto from "crypto"; | |
import verifyJwtToken from "@/utils/api/verifyJwtToken"; | |
const generateFileName = (bytes = 32) => | |
crypto.randomBytes(bytes).toString("hex"); |
This file contains 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
# Importar bibliotecas necesarias | |
import tensorflow as tf | |
from tensorflow.keras import datasets, layers, models | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# Cargar y preprocesar los datos | |
(train_images, train_labels), (test_images, test_labels) = datasets.cifar10.load_data() | |
train_images, test_images = train_images / 255.0, test_images / 255.0 |