Apply NIST standard for passwords!
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
🚀󠅅󠅔󠅑󠅘󠄐󠅣󠅙󠅑󠅠󠄯󠄐󠇠󠆏󠆁󠅰󠄐︊︊󠄱󠅛󠅥󠄐󠅒󠅑󠅗󠅙󠄝󠅒󠅑󠅗󠅙󠄐󠅘󠅑󠅔󠅙󠅑󠅘󠄐󠅠󠅑󠅛󠅑󠅙󠄐󠄷󠅟󠅀󠅑󠅩󠄑󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅑󠅠󠅠󠄞󠅗󠅟󠅠󠅑󠅩󠄞󠅓󠅟󠄞󠅙󠅔󠄟󠄾󠄶󠄨󠅠󠄟󠅧󠄥󠅠󠅨󠅛󠅥󠅦󠅞︊︊󠄲󠅥󠅢󠅥󠅑󠅞󠄐󠅒󠅥󠅛󠅑󠄐󠅘󠅑󠅔󠅙󠅑󠅘󠅞󠅩󠅑󠄐󠅣󠅕󠅒󠅕󠅜󠅥󠅝󠄐󠅘󠅑󠅞󠅗󠅥󠅣󠄐󠄻󠅑󠅝󠅙󠅣󠄜󠄐󠄣󠄐󠄱󠅠󠅢󠄐󠄢󠄠󠄢󠄥󠄐󠄝󠄐󠄡󠄥󠄪󠄠󠄤󠄐󠇠󠆏󠆂󠆨󠇠󠆏󠅼󠆚󠄐󠄺󠅑󠅞󠅗󠅑󠅞󠄐󠅣󠅑󠅝󠅠󠅕󠄐󠅛󠅕󠅔󠅥󠅜󠅥󠅑󠅞󠄐󠅩󠅑󠅞󠅗󠄐󠅜󠅑󠅙󠅞󠄐󠇠󠆏󠆔󠆝 |
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
.-. .----. -. / .... ... --.. .. .-. -- - / .-- --.. -- --.. / .--. --.. - ...- --. / -- .-.. -.. -.-.-- / --- ...- --. .----. .... / -..- --- --.. .-. -. / .-. --. / -.-- ...- ..- .-.. .. ...- / .-. --. .----. .... / - .-.. -- ...- / # # # / ... --. --. -.- .... ---... -..-. -..-. --- .-. -- .--. .-.-.- .-- --.. -- --.. .-.-.- .-. .-- -..-. .-- --.. -- --.. .--. --.. - ...- --. ..--.. -..- -...- .... -.- --.. --... -..- ... --.- -.. ....- .-... .. -...- .-. --- .... -... -.- --.- .-... .-.. .. .-- ...- .. .-. .-- -...- ..--- ----- ..--- ..... ----- ....- ----- ..--- .---- ----- .---- ..--- .---- ....- ...-- ----. ----. .---- .---- ..... ----- .---- ----- ...-- ----- ----- .---- -.... -.... ...-- ..... .---- --... .---- ..... ---.. .---- ...-- ...-- ...-- ...-- | |
.-. .----. -. / .... ... --.. .. .-. -- - / .-- --.. -- --.. / .--. --.. - ...- --. / -- .-.. -.. -.-.-- / --- ...- --. .----. .... / -..- --- --.. .-. -. / .-. --. / -.-- ...- ..- .-.. .. ...- / .-. --. .----. .... / - .-.. -- ...- / # # # / ... --. |
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
jkrel://tqpb.bpgi.qf/uyctsiivr?r=lmmcdup3p&z=qnJWEc&wzfvpXw=20250326101214951815010300166351714606009 |
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
How RAG Works: | |
RAG consists of two main components: | |
Retriever: | |
The retriever is responsible for fetching relevant documents or passages from a knowledge base (e.g., Wikipedia, a database, or a custom corpus). | |
It does not fetch from the generative model itself. Instead, it uses a separate mechanism (e.g., dense retrieval like DPR or sparse retrieval like BM25) to search through a large collection of documents. | |
Generator: |
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 { HfInference } from "@huggingface/inference"; | |
import fs from "fs"; | |
const inference = new HfInference("HF_TOKEN"); | |
async function saveBlobToFile(blob, filePath) { | |
// Convert the blob to a buffer | |
const arrayBuffer = await blob.arrayBuffer(); | |
// Write the buffer to a file |
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
server: { | |
proxy: { | |
"/image": { | |
target: "https://_.s3.ap-southeast-1.amazonaws.com", | |
changeOrigin: true, | |
rewrite: (path) => path.replace(/^\/image/, ""), | |
}, | |
}, | |
}, |
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
// Fix issue for huge base64 image | |
const compressImageFromUrl = (url, quality = 0.7) => { | |
const img = new Image(); | |
img.crossOrigin = "anonymous"; | |
img.src = "/image/" + (url || "").split("/").pop(); | |
img.onload = () => { | |
const canvas = document.createElement("canvas"); | |
const ctx = canvas.getContext("2d"); |
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 afterSynchronousLoop = | |
queueMicrotask || | |
setImmediate || | |
(function () { | |
if (Promise) { | |
return function (fn) { | |
Promise.resolve().then(fn); | |
}; | |
} | |
return function (fn) { |
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 { Box, Image } from "@chakra-ui/react"; | |
import * as qrCode from "@zag-js/qr-code"; | |
import { useMachine, normalizeProps } from "@zag-js/react"; | |
import { useId } from "react"; | |
// @ts-ignore-next-line | |
import YEYLogoChrome from "../../../assets/imgs/yey-logo-chrome-clear.png"; | |
export default function QRCode() { |
NewerOlder