Skip to content

Instantly share code, notes, and snippets.

View pjob's full-sized avatar

Patrick O'Brien pjob

  • HealthVerity
  • Philadelphia, PA
View GitHub Profile
@pjob
pjob / index.html
Created October 20, 2015 14:59
mpgl
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
@pjob
pjob / gist:7539554
Last active December 28, 2015 17:59
DataPhilly - Scrapy
{
"metadata": {
"name": "DataPhilly - Scrapy"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@pjob
pjob / bookmarks.py
Last active December 17, 2015 19:59
Download Chrome bookmarks in OSX
#!/usr/bin/env python2.7
# Chrome bookmark mirror on OSX
import json
import os
import urllib2
SAVE_LOCATION = '/tmp/bookmarks'
BOOKMARK_FILE = '/Users/user/Library/Application Support/Google/Chrome/Default/Bookmarks'
@pjob
pjob / dataphilly
Created April 5, 2013 18:28
DataPhilly demo of pandas using Philadelphia Police opendata
{
"metadata": {
"name": "Data Philly"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{