Skip to content

Instantly share code, notes, and snippets.

@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')
@pklaus
pklaus / ping.py
Created March 5, 2011 09:50
A pure python ping implementation using raw socket.
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping