Skip to content

Instantly share code, notes, and snippets.

export const getAdminTransactions = async (
    paginationArg: TPaginationArgs = { limit: 10, page: 1 },
    filters?: Record<string, any>,
): Promise<TGetListTransactions> => {
    const { limit, page } = paginationArg;
    const filtersToStr = getFilterPath(filters);

 try {
@kouameYao
kouameYao / email.html
Created August 1, 2024 15:33
Ask for help
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Newsletter</title>
<style>
* {
padding: 0;
margin: 0;
@kouameYao
kouameYao / user-fer.md
Last active August 9, 2024 04:51
Fer assets

Demande d'achat

[
    {
        "email": "dsi-agent@nomail.com" # Création de demande
        "approval_level": 0
    },
    {
@kouameYao
kouameYao / exo-1.html
Last active July 29, 2024 08:06
formation avec M. Ello
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Meilleurs Services Informatiques - Tech Solutions</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"
/>
@kouameYao
kouameYao / not-found.tsx
Created July 23, 2024 17:03
Nextjs project not-found file
import Link from 'next/link';
import Image from 'next/image';
import { Title } from '@/components/ui/text';
import { Button } from '@/components/ui/button';
import { PiHouseLineBold } from 'react-icons/pi';
import SocialItems from '@/components/ui/social-shares';
import NotFoundImg from '@public/not-found.png';
export default function NotFound() {
@kouameYao
kouameYao / enum.to.array.md
Last active May 31, 2024 17:28
explore-more
export function enumToKeyValueArray<E extends Record<string, string | number>>(
  enumObj: E
): KeyValueEntry<keyof E, E[keyof E]>[] {
  return Object.entries(enumObj).map(([key, value]) => ({
    value: key as keyof E,
    label: value as E[keyof E],
  }));
}
@kouameYao
kouameYao / countries-arr-.md
Last active May 17, 2024 14:50
Pays du monde
[
  {"code": "AFG", "pays": "Afghanistan"},
  {"code": "ALB", "pays": "Albanie"},
  {"code": "DZA", "pays": "Algérie"},
  {"code": "AND", "pays": "Andorre"},
  {"code": "AGO", "pays": "Angola"},
  {"code": "ATG", "pays": "Antigua-et-Barbuda"},
  {"code": "ARG", "pays": "Argentine"},
Please enter a MongoDB connection string (Default: mongodb://localhost/):
Current Mongosh Log ID: 6639e4bc72218249cf12686a
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.1
Using MongoDB: 7.0.9
Using Mongosh: 1.8.1
hospital> db.patients.insertMany([ { "name": "kouame", "age": 27, "history": [{ disease: "cold" }] }, { "name": "yao", "age": 24, "history": [{ disease: "headach" }] }, { "name": "jean", "age": 45, "history": [{ disease: "cold" }] }])
{
@kouameYao
kouameYao / index.html
Last active April 24, 2024 08:23
pratique-react-roteur
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foodio</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap" rel="stylesheet">
</head>
<body>
@kouameYao
kouameYao / autDocs.js
Last active April 19, 2024 11:06
Cours Nodejs INP-HB - 2024
/**
* @swagger
* /auth/login:
* post:
* summary: Authentification de l'utilisateur
* description: Authentifie l'utilisateur avec les informations de connexion fournies.
* requestBody:
* required: true
* content:
* application/json: