This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author brayan vasquez <brayvasq@gmail.com> | |
* @version 0.1 | |
* @date 13/02/2019 | |
*/ | |
/** | |
* Size of matrix n*n | |
*/ | |
const n = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# main.py | |
# import section .... | |
from xhtml2pdf import pisa # import python module | |
import sys | |
# Constants section .... | |
# Content to write in our PDF file. | |
SOURCE = "<html><body><p>PDF from string</p></body></html>" | |
# Filename for our PDF file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# main.py | |
# Import section .... | |
import os | |
import sys | |
from dotenv import load_dotenv | |
from smtplib import SMTP, SMTPException # Import SMTP module | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.base import MIMEBase | |
import email.encoders |