Instantly share code, notes, and snippets.

View police.js
// set the dimensions and margins of the graph
var margin = {top: 20, right: 20, bottom: 30, left: 50},
width = 960 - margin.left - margin.right,
height = 500 - - margin.bottom;
// parse the date / time
var parseTime = d3.timeParse("%d-%b-%y");
// set the ranges
var x = d3.scaleTime().range([0, width]);

Keybase proof

I hereby claim:

To claim this, I am signing this object:

import pandas as pd
import json, requests, logging, pprint
# Setup logging
lfh = logging.FileHandler('civicInfoScript.log')
lfh.setFormatter(logging.Formatter('%(levelname)s %(asctime)s %(message)s'))
log = logging.getLogger('civicInfoScript')
import re
import tweepy
import config
import sys
import datetime
import csv
from tweepy import OAuthHandler
from textblob import TextBlob
class TwitterClient(object):
from cStringIO import StringIO
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
from pdfminer.pdfpage import PDFPage
import os
import sys, getopt
def convert(fname, pages=None):
if not pages: