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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tandon-aman
tandon-aman / Uttar_Pradesh_Election_Candidates_Stats.ipynb
Created March 13, 2017 08:43
This notebook contains the stats about the UP election candidates (2012
& 2017). The stats is about their education level, criminal cases & total assets.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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