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
| //C = 5/9(F-32) | |
| let fah = 50; | |
| let c = 5/9 * (fah - 32) | |
| console.log(c) | |
| let grade = 51 | |
| if (grade >= 70 && grade <= 100) { |
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
| //auth.config import type { NextAuthConfig } from "next-auth"; | |
| import { CredentialsSignin } from "next-auth"; | |
| import Credentials from "next-auth/providers/credentials"; | |
| import { getUserFromDb } from "./src/actions/user.action"; | |
| class InvalidLoginError extends CredentialsSignin { | |
| // code = "Invalid identifier or password" | |
| constructor(code: string) { | |
| super(); | |
| this.code = code; |
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
| //middleware | |
| import { auth } from "@/auth"; | |
| console.log("MIDDLEWARE RUNNING"); | |
| export default auth((req) => { | |
| console.log("[DEBUG] Middleware - Auth State:", req.auth); | |
| const isLoggedIn = !!req.auth; | |
| const pathname = req.nextUrl.pathname; | |
| const isAdmin = req.auth?.user?.isAdmin; | |
| console.log("[DEBUG] Middleware - Pathname:", pathname); |
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
| { | |
| "states": [ | |
| { | |
| code: "FC", | |
| name: "Abuja", | |
| lgas: ["Abuja", "Kwali", "Kuje", "Gwagwalada", "Bwari", "Abaji"], | |
| cities: [ | |
| "Bamburu", | |
| "Mararaba", | |
| "Gwarinpa", |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta name="author" content="Michael Nathan" /> | |
| <title>zemoora website</title> | |
| <link rel="stylesheet" href="./assets/css/main.css" /> | |
| </head> | |
| <body> |
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
| #Setup NextJS on Ubuntu server (Digital Ocean, EC2,...) Terminal Commands | |
| #based on my YouTube video | |
| #Recommended: An ubuntu server with at least 2 GB memory to handle npm run build | |
| #login to server | |
| ssh root@ip_address | |
| #Upgrade Server - may take a few minutes | |
| sudo apt update | |
| sudo apt upgrade |
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
| { | |
| "9 payment service Bank": "120001", | |
| "AB MICROFINANCE BANK": "090270", | |
| "ABBEY MORTGAGE BANK": "070010", | |
| "ABOVE ONLY MICROFINANCE BANK": "090260", | |
| "ABU MICROFINANCE BANK": "090197", | |
| "ACCESS BANK": "000014", | |
| "ACCESSMONEY": "100013", | |
| "ACCION MFB": "090134", | |
| "ADDOSSER MFBB": "090160", |
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
| [{"state":{"name":"Abia State","id":1,"locals":[{"name":"Aba South","id":1},{"name":"Arochukwu","id":2},{"name":"Bende","id":3},{"name":"Ikwuano","id":4},{"name":"Isiala Ngwa North","id":5},{"name":"Isiala Ngwa South","id":6},{"name":"Isuikwuato","id":7},{"name":"Obi Ngwa","id":8},{"name":"Ohafia","id":9},{"name":"Osisioma","id":10},{"name":"Ugwunagbo","id":11},{"name":"Ukwa East","id":12},{"name":"Ukwa West","id":13},{"name":"Umuahia North","id":14},{"name":"Umuahia South","id":15},{"name":"Umu Nneochi","id":16}]}},{"state":{"name":"Adamawa State","id":2,"locals":[{"name":"Fufure","id":1},{"name":"Ganye","id":2},{"name":"Gayuk","id":3},{"name":"Gombi","id":4},{"name":"Grie","id":5},{"name":"Hong","id":6},{"name":"Jada","id":7},{"name":"Lamurde","id":8},{"name":"Madagali","id":9},{"name":"Maiha","id":10},{"name":"Mayo Belwa","id":11},{"name":"Michika","id":12},{"name":"Mubi North","id":13},{"name":"Mubi South","id":14},{"name":"Numan","id":15},{"name":"Shelleng","id":16},{"name":"Song","id":17},{"name":"Toung |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width" /> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Office 365</title> | |
| <style> | |
| /* ------------------------------------- | |
| GLOBAL RESETS |
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
| //HTML | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Zemoora | Dedicated to give the best web experience</title> | |
| <link rel="stylesheet" href="./assets/css/main.css"> | |
| <link rel="stylesheet" href="./assets/css/utilities.css"> |
NewerOlder