Skip to content

Instantly share code, notes, and snippets.

View Davis-3450's full-sized avatar
🫥
Mrowww

Davis Davis-3450

🫥
Mrowww
View GitHub Profile

Tenemos un repo para un CMS De testimonios.

Nuestros usuarios son:

user / publico -> tiene acceso a la API publica sin autenticacion

editor / autenticado -> tiene acceso a la api de edicion admin / autenticado -> tiene acceso a la api de edicion y puede aprobar posts

Estado de lint (bun lint)

  • Gravedad estimada: 7/10
  • 26 errores (bloquean), 75 warnings

Acciones críticas (bloquean)

  • Reemplazar any por tipos concretos:
    • src/features/auth/components/AuthLoginPage.tsx:42
    • src/features/auth/components/AuthSignupPage.tsx:48
    • src/features/projects/components/ProjectCreatePage.tsx:63
  • src/features/projects/components/ProjectList.tsx:28,136,208
<!doctype html>
<html lang="en">
<head>
<title>Eslint Report</title>
<meta charset="UTF-8" />
<base target="_blank" />
<link rel="icon" href="https://eslint.org/favicon.ico" />
<script src="https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js"></script>
<script src="https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js"></script>

C:\Users\davi3\GitHubprojects\S11-25-Equipo-64-WebApp\src\app(auth)\layout.tsx

║ Line │ Column │ Type │ Message │ Rule ID ║ ╟──────────┼──────────┼──────────┼────────────────────────────────────────────────────────┼──────────────────────╢ ║ 1 │ 10 │ warning │ 'AuthLayout' is defined but never used. │ @typescript-eslint/ ║ ║ │ │ │ │ no-unused-vars ║

C:\Users\davi3\GitHubprojects\S11-25-Equipo-64-WebApp\src\app(marketing)_components\AboutMissionPage.tsx

CREATE TYPE user_role AS ENUM ('admin','editor','visitor');
CREATE TYPE testimonial_status AS ENUM ('draft','in_review','published','rejected');
CREATE TYPE visibility AS ENUM ('public','private');
CREATE TYPE media_type AS ENUM ('image','video','file');
CREATE TYPE media_provider AS ENUM ('cloudinary','youtube','other');
CREATE TYPE moderation_decision AS ENUM ('approved','rejected');
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
email TEXT UNIQUE NOT NULL,
@Davis-3450
Davis-3450 / download_mp4.sh
Created October 24, 2025 19:50
ytd commands
-S res,ext:mp4:m4a --recode mp4
class WorkHour(int, Enum):
WORK_START = 8
LUNCH_START = 12
LUNCH_END = 13
WORK_END = 17
def is_working_hour(self) -> bool:
t = date.time()
morning_ok = time(WorkHour.WORK_START.value, 0) <= t < time(WorkHour.LUNCH_START.value, 0)
afternoon_ok = time(WorkHour.LUNCH_END.value, 0) <= t < time(WorkHour.WORK_END.value, 0)
@Davis-3450
Davis-3450 / conversions.txt
Created September 16, 2025 02:11
hormone conversion factors
## Universal
- nmol/L -> pmol/L = 1000
- pmol/L -> nmol/L = 0.001
- ng/mL -> ng/dL = 100
- ng/dL -> ng/mL = 0.01
- ng/mL -> pg/mL = 1000
- pg/mL -> ng/mL = 0.001
## Hormone specific
import argparse
import os
import re
import subprocess
import sys
from pathlib import Path
def repo_root() -> Path:
return Path(__file__).resolve().parent
@Davis-3450
Davis-3450 / structs2.rs
Created August 17, 2025 00:13
Rustlings structs 2
// Clone trait
// structs by default don't allow cloning, if we add this trait we can allow it and implement an alternative fix to this
#[derive(Debug, Clone)]
struct Order {
name: String,
year: u32,
made_by_phone: bool,
made_by_mobile: bool,
made_by_email: bool,