Skip to content

Instantly share code, notes, and snippets.

#install prereqs
sudo yum install -y python27-devel.x86_64
sudo yum install -y libpng-devel
sudo yum install -y freetype-devel
#Installing iPython Notebook
if grep isMaster /mnt/var/lib/info/instance.json | grep true;
then
cd /home/hadoop
@ianthomas
ianthomas / _.md
Created July 11, 2015 15:54
Crossfilter test array
@ianthomas
ianthomas / _.md
Created July 11, 2015 15:38
Crossfilter test array
@ianthomas
ianthomas / exporter.py
Last active November 9, 2020 05:34
save tweets to text file, improved
__author__ = 'apreston'
from pymongo import MongoClient
import datetime, time, string
import codecs
import itertools
#c = MongoClient()
c = MongoClient("mongodb://datascientist:pass@host/db")
db = c.mj_tweets
collection = db.mj_sample