Skip to content

Instantly share code, notes, and snippets.

View Code-Victor's full-sized avatar
need more time!

Hamzat Victor Oluwabori Code-Victor

need more time!
View GitHub Profile
@Code-Victor
Code-Victor / remixicon.glyphmap.json
Last active August 22, 2024 12:45
Remix Icon glyphmap
{
"24-hours-fill": "59905",
"24-hours-line": "59906",
"4k-fill": "59907",
"4k-line": "59908",
"a-b": "59909",
"account-box-fill": "59910",
"account-box-line": "59911",
"account-circle-fill": "59912",
"account-circle-line": "59913",
@Code-Victor
Code-Victor / error-mesages.ts
Created September 6, 2023 16:59
contains known error messages for the Glouse API
const errors = {
auth: {
login: [
"This device is unrecognised, an otp has been sent to your mail to verify the account",
"invalid credentials",
],
signuOtp: ["email in use", "Otp has been sent within the minute"],
verifySignupOtp: ["Otp entered is incorrect", "Otp has expired"],
saveSignupDetails: [
"Phone number entered is not a valid Nigerian number",
import random
LOWERCASE_ALPHABETS = "abcdefghijklmnopqrstuvwxyz"
UPPERCASE_ALPHABETS = LOWERCASE_ALPHABETS.upper()
DIGITS = "0123456789"
SPECIAL_CHARACTERS = "!@#$%^&*()_+"
PASSWORD_LENGTH = 12
lowercase_count = 3
uppercase_count = 3
digits_count = 3
import random
LOWERCASE_ALPHABETS = "abcdefghijklmnopqrstuvwxyz"
UPPERCASE_ALPHABETS = LOWERCASE_ALPHABETS.upper()
DIGITS = "0123456789"
SPECIAL_CHARACTERS = "!@#$%^&*()_+"
ALL = LOWERCASE_ALPHABETS + UPPERCASE_ALPHABETS + DIGITS + SPECIAL_CHARACTERS
PASSWORD_LENGTH = 12
password = "".join(random.choices(ALL, k=PASSWORD_LENGTH))
print(password)
@Code-Victor
Code-Victor / app.js
Created July 6, 2022 17:25
layout animation
import React from "react";
import { styled } from "../../stitches.config";
import { motion } from "framer-motion";
const data = [
{
id: 1,
name: "Top gun",
img: "/top-gun.jpeg",
@Code-Victor
Code-Victor / layout.js
Last active July 6, 2022 16:20
layout
<Box
css={{
minHeight: "100vh",
minWidth: "100vw",
display: "grid",
placeItems: "center",
}}
>
<Box
css={{ display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 20 }}