Skip to content

Instantly share code, notes, and snippets.

docker

Curso Docker - Guía práctica de uso para desarrolladores

import os
import smtplib
import ssl
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
@alfchee
alfchee / NumeroALetras.js
Last active November 23, 2025 21:13
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@suissa
suissa / jquery_datepicker_to_from_date
Created March 5, 2012 21:12
Criação de jquery datepicker utilizando uma data inicial e data final, sendo a data final não podendo ser menor que a data inicial.
var dates = $( "#data_inicial, #data_final" ).datepicker({
dateFormat: 'dd/mm/yy',
defaultDate: "+1w",
changeMonth: true,
onSelect: function( selectedDate ) {
var option = this.id == "data_inicial" ? "minDate" : "maxDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,