Skip to content

Instantly share code, notes, and snippets.

View oskopek's full-sized avatar

Ondrej Skopek oskopek

View GitHub Profile
@gyfis
gyfis / pdf_interpolate_false.py
Created May 9, 2017 14:48
Last frontier destroyed, submitting thesis.pdf
from pdfrw import PdfReader, PdfWriter, PdfObject
def main():
thesis = PdfReader('thesis.pdf')
for i, _ in enumerate(thesis.pages):
try:
im_keys = thesis.pages[i].Resources.XObject.keys()
@sjoerdvisscher
sjoerdvisscher / curry.html
Created July 9, 2012 20:37
Curry and uncurry in JavaScript
<script>
function curry(f)
{
if (typeof f != "function" || f.length < 2)
return f;
return mkHelper(f, []);
}
function mkHelper(f, args)