Skip to content

Instantly share code, notes, and snippets.

View jssolar's full-sized avatar
:octocat:
Siempre Arriba!!

JuanSolar jssolar

:octocat:
Siempre Arriba!!
View GitHub Profile
@Klerith
Klerith / download-image-base-64.ts
Last active January 15, 2026 00:30
Descargar imagen base 64
export const downloadBase64ImageAsPng = async (base64Image: string) => {
// Remover encabezado
base64Image = base64Image.split(';base64,').pop();
const imageBuffer = Buffer.from(base64Image, 'base64');
const folderPath = path.resolve('./', './generated/images/');
fs.mkdirSync(folderPath, { recursive: true });
const imageNamePng = `${ new Date().getTime() }-64.png`;
@Klerith
Klerith / instalaciones-database.md
Last active January 29, 2026 19:02
Instalaciones necesarias para el curso de base de datos
Postgresql_elephant svg

SQL de cero: Tu guía práctica con PostgreSQL

Instalaciones recomendadas

@Klerith
Klerith / README.md
Last active October 14, 2025 15:19
Deprecated Method - Decorador

@Deprecated - Method Decorator

En la definición del método, se puede marcar como obsoleto (deprecated) con la justificación. Esto ayudará a que otros developers sepán que deben de utilizar ya la alternativa.

@Deprecated('Most use speak2 method instead')
 speak() {
      console.log(`${ this.name }, ${ this.name }!`)
 }