Skip to content

Instantly share code, notes, and snippets.

View Davis-3450's full-sized avatar
πŸ«₯
Mrowww

Davis Davis-3450

πŸ«₯
Mrowww
View GitHub Profile
@Davis-3450
Davis-3450 / eslint.yml
Created December 15, 2025 09:55
generic eslint config with bun (trigger with PR)
name: ESLint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# schedule: (disabled for now)
# - cron: "41 20 * * 3"

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