Skip to content

Instantly share code, notes, and snippets.

View ricardopirespro's full-sized avatar

Ricardo Pires ricardopirespro

View GitHub Profile
@kpkpkps
kpkpkps / Hand-Controlled-Tetris
Created July 11, 2021 10:13
Hand Controlled Tetris | Python: Pygame, OpenCV and Mediapipe
import pygame
import cv2
import mediapipe as mp
import os
import random
'''
Thank you "Tech With Tim" and "Murtaza's Workshop" for great free python tutorials on youtube that help me so much with this work
Tech With Tim | Making Tetris Tutorial: https://www.youtube.com/watch?v=uoR4ilCWwKA
Murtaza's Workshop | Hand Tracking Tutorial: https://www.youtube.com/watch?v=p5Z_GGRCI5s
@kirienko
kirienko / reverse_imposing.py
Last active March 3, 2024 08:59 — forked from tshrinivasan/split-page.py
Split a PDF vertically, used for imposed scanned double sided PDF pages
# see https://stackoverflow.com/questions/51973437/reverse-pdf-imposition
import copy
import sys
import math
import pyPdf
"""
Reverse imposing:
@tshrinivasan
tshrinivasan / split-page.py
Last active October 19, 2024 18:18
Split a PDF vertically, used for scanned double sided PDF pages
# Source http://stackoverflow.com/a/15741856/1301753
import copy
import sys
import math
import pyPdf
def split_pages(src, dst):
src_f = file(src, 'r+b')
dst_f = file(dst, 'w+b')