Skip to content

Instantly share code, notes, and snippets.

View tandon-aman's full-sized avatar

Aman Tandon tandon-aman

  • BedbathBeyond
  • Noida
View GitHub Profile
@tandon-aman
tandon-aman / Spark+ipython_on_MacOS.md
Created October 17, 2015 17:16 — forked from ololobus/Spark+ipython_on_MacOS.md
Apache Spark installation + ipython notebook integration guide for Mac OS X

Apache Spark installation + ipython notebook integration guide for Mac OS X

Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45

Install Java Development Kit

Download and install it from oracle.com

@tandon-aman
tandon-aman / merge_pdfbox.py
Created May 10, 2016 06:11 — forked from mattsgarrison/merge_pdfbox.py
Jython script to use Apache PDFBox to merge PDFs into a single file.
import sys
from java.io import *
import java.io.InputStream
import java.io.FileInputStream
import java.lang.String # blah....converting String types between Java/Python is tedious
sys.path.append("pdfbox-1.0.0.jar") # or wherever you stashed it
import org.apache.pdfbox
"""
This method merges the FileInputStreams that the streamList points to, into the