Skip to content

Instantly share code, notes, and snippets.

View marcorichetta's full-sized avatar
🏀
Ballin'

Marco Richetta marcorichetta

🏀
Ballin'
View GitHub Profile
@marcorichetta
marcorichetta / split.py
Created June 24, 2019 13:20
Split a pdf file between provided pages.
from PyPDF2 import PdfFileReader, PdfFileWriter
def split(path, split_name, start_page, end_page):
# Create a FileReader instance
pdf = PdfFileReader(path)
# Create a FileWriter instance
pdf_writer = PdfFileWriter()
@marcorichetta
marcorichetta / oop.py
Created March 21, 2019 19:59
OOP Corey Schafer Tutorial
class Empleado:
# Class variables
aumento = 1.10
numEmpleados = 0
def __init__(self, first, last, pay):
""" El método `__init__` se ejecuta cada vez que se crea un nuevo `Empleado` """
self.first = first
self.last = last
@marcorichetta
marcorichetta / layout.html
Created January 11, 2019 14:21
Layout to use mainly on Flask projects with bootstrap (JS included)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- BOOTSTRAP CSS -->
<link rel="stylesheet" type="text/css" media="screen" href="../static/bootstrap.min.css" />
@marcorichetta
marcorichetta / KDE.md
Last active December 28, 2019 00:29
KDE Installation on Manjaro
@marcorichetta
marcorichetta / Matrix.html
Created March 18, 2018 19:50
Matrix-style page. Downloaded from Sololearn App.
<html>
<head>
<style>
/*basic reset */
*{
margin: 0;
padding: 0;
}