Skip to content

Instantly share code, notes, and snippets.

View hernandohhoyos's full-sized avatar

Hernando Hurtado Hoyos hernandohhoyos

  • I currently work at LF Technologies
  • Colombia
  • 05:37 (UTC -05:00)
View GitHub Profile
@hernandohhoyos
hernandohhoyos / consoleColors.js
Created July 30, 2021 15:30 — forked from abritinthebay/consoleColors.js
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"
@hernandohhoyos
hernandohhoyos / fecha_letras.py
Last active January 22, 2020 13:37 — forked from efrenfuentes/numero_letras.py
Fecha a letras (Python)
UNIDADES = ('cero','un','dos','tres','cuatro','cinco','séis','siete','ocho','nueve')
DECENAS = ('diez','once','doce','trece','catorce','quince','dieciseis','diecisiete','dieciocho','diecinueve')
DIEZ_DIEZ = ('cero','diez','veinte','treinta')
CIENTOS = ('_','ciento','doscientos','trescientos','cuatroscientos','quinientos','seiscientos','setecientos','ochocientos','novecientos')
def mes_a_letras(number=1):
html = ""
MESES = ('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre')
html += MESES[number-1]