I hereby claim:
- I am thinrhino on github.
- I am thinrhino (https://keybase.io/thinrhino) on keybase.
- I have a public key whose fingerprint is 76EB 936C 5D76 6E82 E9A9 68FF 96C8 359B CC53 9C5F
To claim this, I am signing this object:
import pandas | |
df = pandas.read_csv('offers.csv.gz', compression='gzip') | |
categories = df.category.tolist() | |
subset = open('subset.csv', 'w') | |
fl = open('transactions.csv', 'r') | |
fl.readline() | |
while True: | |
l = fl.readline() | |
if l == '': |
""" | |
Code to download and upload raw data from mix-panel | |
""" | |
import hashlib | |
import datetime | |
import time | |
import tempfile | |
import os | |
import bz2 |
# Script to populate data into MongoDB | |
import twitter | |
import time | |
import logging | |
from pymongo import MongoClient | |
CONSUMER_KEY = '<twitter_consumer_key>' | |
CONSUMER_SECRET = '<twitter_secret_key>' |
from collections import defaultdict | |
import matplotlib.pyplot as plt | |
data = open('<data_file>', 'r') | |
r_data = [] | |
# reading relevant data | |
while True: | |
l = data.readline() | |
if l == '': |
#!/bin/sh | |
# Change these settings to match what you are wanting to do | |
FILE=/File/To/Copy | |
SERVER=localhost | |
PATH=/Where/To/Put/File | |
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' '{print "-o " $1 "=" $2}'` | |
scp ${OPTIONS} $FILE vagrant@$SERVER:$PATH |
$(document).ready(function() { | |
$(chart_id).highcharts({ | |
chart: chart, | |
title: title, | |
xAxis: xAxis, | |
yAxis: yAxis, | |
series: series | |
}); | |
}); |
#!/usr/bin/env python -i | |
""" | |
A local interactive IPython shell for Google App Engine on Mac OSX. | |
Usage: | |
cd /to/project/folder/with/app.yaml | |
python gae_shell.py | |
Notes: |
;; Enable mouse support | |
(unless window-system | |
(require 'mouse) | |
(xterm-mouse-mode t) | |
(global-set-key [mouse-4] '(lambda () | |
(interactive) | |
(scroll-down 1))) | |
(global-set-key [mouse-5] '(lambda () | |
(interactive) | |
(scroll-up 1))) |
# First download the twitter archive | |
# Get API_KEY and API_SECRET from developer.twitter.com | |
import os | |
import json | |
import glob | |
import base64 | |
import requests | |
from requests_oauthlib import OAuth1Session |
I hereby claim:
To claim this, I am signing this object: