Skip to content

Instantly share code, notes, and snippets.

View jgasteiz's full-sized avatar

Javi Manzano jgasteiz

View GitHub Profile
@jgasteiz
jgasteiz / split_in_half.py
Last active December 27, 2015 11:55
Python script that accepts a pdf file as input and creates an output with all the pages split in half, by the x axis – the output file will have twice as many pages as the original file.
#!/usr/bin/python
"""
Python script that accepts a pdf file as input and creates an output with all
the pages split in half, by the x axis - the output file will have twice as
many pages as the original file.
e.g. `python split_in_half.py ~/Documents/my-double-paged-document.pdf`
An output file called `output.pdf` will be created.
@jgasteiz
jgasteiz / mtime_file_watcher.py
Created May 5, 2016 07:41
Python Google Appengine 1.9.25 file watcher - only watch py and html files (see line 111)
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@jgasteiz
jgasteiz / blackisort.sh
Last active November 18, 2019 19:35
Given a path, look for subdirectories and create a .cbz file per each of them
black $1
isort $1