Esta guía documenta paso a paso cómo implementar autenticación con NextAuth, Prisma y credenciales en un proyecto Next.js con App Router (como "La Huanca").
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 { create } from 'zustand' | |
interface Bear { | |
id: number; | |
name: string; | |
} | |
interface BearState { | |
blackBears: number; |
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
#include "miniwin.h" | |
#include <string> | |
using namespace miniwin; | |
using namespace std; | |
void numDep0(int x, int y) { | |
color(VERDE); | |
linea(x + 5, y, x + 20, y); | |
linea(x - 5, y, x - 20, y); | |
linea(x, y, x, y - 20); |
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
#include "miniwin.h" | |
using namespace miniwin; | |
int main() { | |
int t = tecla(); | |
vredimensiona(500, 500); | |
int x_tortuga = 250; // Posición inicial de la tortuga | |
int y_tortuga = 400; // Posición fija en el eje y (sobre el piso) | |
int direccion = 1; // 1 para la derecha, -1 para la izquierda |
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
#include "miniwin.h" | |
#include <string> | |
using namespace miniwin; | |
using namespace std; | |
string convertirARomanos(int numero) { | |
string resultado = ""; | |
int valores[] = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1}; | |
string simbolos[] = {"M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"}; |
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
#include "miniwin.h" | |
#include <sstream> | |
#include <cstdlib> | |
#include <ctime> | |
using namespace miniwin; | |
using namespace std; | |
inline string toString(int num) { | |
ostringstream buffer; | |
buffer << num; |
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
#include "miniwin.h" | |
using namespace miniwin; | |
const int ANCHO = 600; | |
const int ALTO = 600; | |
void barra(int x, int y, int ancho, int largo){ | |
color(VERDE); | |
for(int i=x; i<x+largo; i+=10){ | |
espera(50); | |
rectangulo_lleno(i,y-ancho/2,i+10,y+ancho/2); | |
refresca(); |
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
#include "miniwin.h" | |
#include "cmath" | |
using namespace miniwin; | |
void Cabecera(const char* titulo){ | |
color(AZUL); | |
rectangulo(10,10,690,50); | |
color(VERDE); | |
texto(15,15,titulo); |
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 the functions you need from the SDKs you need | |
import { initializeApp } from "firebase/app"; | |
import { getAuth } from "firebase/auth"; | |
import { getFirestore } from "firebase/firestore"; | |
// TODO: Add SDKs for Firebase products that you want to use | |
// https://firebase.google.com/docs/web/setup#available-libraries | |
// Your web app's Firebase configuration | |
const firebaseConfig = { | |
apiKey: "", |
NewerOlder