Skip to content

Instantly share code, notes, and snippets.

View adamrpah's full-sized avatar

Adam Pah adamrpah

  • Andrew Young School of Policy Studies, Georgia State University
  • Atlanta, GA
View GitHub Profile
#!/usr/bin/env python
'''
File: keynote2pdf.py
Author: Adam Pah
Description:
Converts a directory of keynote documents to pdfs
Hacky hack hack.
'''
#Standard path imports
@adamrpah
adamrpah / notebook_cleaner.py
Created March 22, 2015 17:00
Python script to remove output and prompt numbering from a notebook file
#!/usr/bin/env python3
'''
File: notebook_cleaner.py
Author: Adam Pah
Description:
Cleans the output from a notebook
'''
#Standard path imports
from __future__ import division, print_function
@adamrpah
adamrpah / mongoConnect.py
Last active August 29, 2015 14:06
This is a simple script to handle connecting to a MongoDB collection, along with some neat helper functions
'''
File: mongoConnect.py
Author: Adam Pah
Description:
Handle the mongo connections
'''
import sys
import random
from pymongo import MongoClient
We can't make this file beautiful and searchable because it's too large.
,SeriousDlqin2yrs,RevolvingUtilizationOfUnsecuredLines,age,NumberOfTime30-59DaysPastDueNotWorse,DebtRatio,MonthlyIncome,NumberOfOpenCreditLinesAndLoans,NumberOfTimes90DaysLate,NumberRealEstateLoansOrLines,NumberOfTime60-89DaysPastDueNotWorse,NumberOfDependents
1,1,0.766126609,45,2,0.802982129,9120,13,0,6,0,2
2,0,0.957151019,40,0,0.121876201,2600,4,0,0,0,1
3,0,0.65818014,38,1,0.085113375,3042,2,1,0,0,0
4,0,0.233809776,30,0,0.036049682,3300,5,0,0,0,0
5,0,0.9072394,49,1,0.024925695,63588,7,0,1,0,0
6,0,0.213178682,74,0,0.375606969,3500,3,0,1,0,1
7,0,0.305682465,57,0,5710,NA,8,0,3,0,0
8,0,0.754463648,39,0,0.209940017,3500,8,0,0,0,0
9,0,0.116950644,27,0,46,NA,2,0,0,0,NA
We can't make this file beautiful and searchable because it's too large.
,SeriousDlqin2yrs,RevolvingUtilizationOfUnsecuredLines,age,NumberOfTime30-59DaysPastDueNotWorse,DebtRatio,MonthlyIncome,NumberOfOpenCreditLinesAndLoans,NumberOfTimes90DaysLate,NumberRealEstateLoansOrLines,NumberOfTime60-89DaysPastDueNotWorse,NumberOfDependents
1,,0.88551908,43,0,0.177512717,5700,4,0,0,0,0
2,,0.463295269,57,0,0.527236928,9141,15,0,4,0,2
3,,0.043275036,59,0,0.687647522,5083,12,0,1,0,2
4,,0.280308229,38,1,0.925960637,3200,7,0,2,0,0
5,,0.9999999,27,0,0.019917227,3865,4,0,0,0,1
6,,0.509791452,63,0,0.342429365,4140,4,0,0,0,1
7,,0.587778161,50,0,1048,0,5,0,0,0,3
8,,0.046148938,79,1,0.3691702,3301,8,0,1,0,1
9,,0.013527027,68,0,2024,NA,4,0,1,0,0
We can't make this file beautiful and searchable because it's too large.
,SeriousDlqin2yrs,RevolvingUtilizationOfUnsecuredLines,age,NumberOfTime30-59DaysPastDueNotWorse,DebtRatio,MonthlyIncome,NumberOfOpenCreditLinesAndLoans,NumberOfTimes90DaysLate,NumberRealEstateLoansOrLines,NumberOfTime60-89DaysPastDueNotWorse,NumberOfDependents
1,1,0.766126609,45,2,0.802982129,9120,13,0,6,0,2
2,0,0.957151019,40,0,0.121876201,2600,4,0,0,0,1
3,0,0.65818014,38,1,0.085113375,3042,2,1,0,0,0
4,0,0.233809776,30,0,0.036049682,3300,5,0,0,0,0
5,0,0.9072394,49,1,0.024925695,63588,7,0,1,0,0
6,0,0.213178682,74,0,0.375606969,3500,3,0,1,0,1
7,0,0.305682465,57,0,5710,NA,8,0,3,0,0
8,0,0.754463648,39,0,0.209940017,3500,8,0,0,0,0
9,0,0.116950644,27,0,46,NA,2,0,0,0,NA
We can't make this file beautiful and searchable because it's too large.
,SeriousDlqin2yrs,RevolvingUtilizationOfUnsecuredLines,age,NumberOfTime30-59DaysPastDueNotWorse,DebtRatio,MonthlyIncome,NumberOfOpenCreditLinesAndLoans,NumberOfTimes90DaysLate,NumberRealEstateLoansOrLines,NumberOfTime60-89DaysPastDueNotWorse,NumberOfDependents
1,,0.88551908,43,0,0.177512717,5700,4,0,0,0,0
2,,0.463295269,57,0,0.527236928,9141,15,0,4,0,2
3,,0.043275036,59,0,0.687647522,5083,12,0,1,0,2
4,,0.280308229,38,1,0.925960637,3200,7,0,2,0,0
5,,0.9999999,27,0,0.019917227,3865,4,0,0,0,1
6,,0.509791452,63,0,0.342429365,4140,4,0,0,0,1
7,,0.587778161,50,0,1048,0,5,0,0,0,3
8,,0.046148938,79,1,0.3691702,3301,8,0,1,0,1
9,,0.013527027,68,0,2024,NA,4,0,1,0,0
We can't make this file beautiful and searchable because it's too large.
,SeriousDlqin2yrs,RevolvingUtilizationOfUnsecuredLines,age,NumberOfTime30-59DaysPastDueNotWorse,DebtRatio,MonthlyIncome,NumberOfOpenCreditLinesAndLoans,NumberOfTimes90DaysLate,NumberRealEstateLoansOrLines,NumberOfTime60-89DaysPastDueNotWorse,NumberOfDependents
1,,0.88551908,43,0,0.177512717,5700,4,0,0,0,0
2,,0.463295269,57,0,0.527236928,9141,15,0,4,0,2
3,,0.043275036,59,0,0.687647522,5083,12,0,1,0,2
4,,0.280308229,38,1,0.925960637,3200,7,0,2,0,0
5,,0.9999999,27,0,0.019917227,3865,4,0,0,0,1
6,,0.509791452,63,0,0.342429365,4140,4,0,0,0,1
7,,0.587778161,50,0,1048,0,5,0,0,0,3
8,,0.046148938,79,1,0.3691702,3301,8,0,1,0,1
9,,0.013527027,68,0,2024,NA,4,0,1,0,0
This file has been truncated, but you can view the full file.
{"directed": false, "graph": [], "nodes": [{"latitude": 41.88389277, "capacity": 43, "name": "Michigan Ave & Washington St", "longitude": -87.62464914, "id": 1}, {"latitude": 41.8847302, "capacity": 27, "name": "State St & Randolph St", "longitude": -87.62773357, "id": 2}, {"latitude": 41.877181, "capacity": 27, "name": "State St & Van Buren St", "longitude": -87.627844, "id": 3}, {"latitude": 41.891738, "capacity": 15, "name": "Wabash Ave & Grand Ave", "longitude": -87.626937, "id": 4}, {"latitude": 41.88457623, "capacity": 31, "name": "Clark St & Randolph St", "longitude": -87.63188991, "id": 5}, {"latitude": 41.882664, "capacity": 15, "name": "LaSalle St & Washington St", "longitude": -87.63253, "id": 6}, {"latitude": 41.878724, "capacity": 15, "name": "Franklin St & Quincy St", "longitude": -87.634793, "id": 7}, {"latitude": 41.8810317, "capacity": 35, "name": "Millennium Park", "longitude": -87.62408432, "id": 8}, {"latitude": 41.87593267, "capacity": 27, "name": "Clark St & Congress Pkwy", "longitude":
@adamrpah
adamrpah / divvy_trips.json
Created September 4, 2014 21:09
Divvy trips network in JSON format
This file has been truncated, but you can view the full file.
{"directed": false, "graph": [], "nodes": [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}, {"id": 6}, {"id": 7}, {"id": 8}, {"id": 9}, {"id": 10}, {"id": 11}, {"id": 12}, {"id": 13}, {"id": 14}, {"id": 16}, {"id": 17}, {"id": 19}, {"id": 20}, {"id": 21}, {"id": 22}, {"id": 23}, {"id": 25}, {"id": 26}, {"id": 27}, {"id": 28}, {"id": 29}, {"id": 30}, {"id": 31}, {"id": 32}, {"id": 33}, {"id": 34}, {"id": 36}, {"id": 37}, {"id": 38}, {"id": 39}, {"id": 40}, {"id": 42}, {"id": 43}, {"id": 44}, {"id": 45}, {"id": 46}, {"id": 48}, {"id": 49}, {"id": 50}, {"id": 51}, {"id": 52}, {"id": 53}, {"id": 54}, {"id": 56}, {"id": 57}, {"id": 58}, {"id": 59}, {"id": 60}, {"id": 61}, {"id": 62}, {"id": 63}, {"id": 64}, {"id": 65}, {"id": 66}, {"id": 67}, {"id": 68}, {"id": 69}, {"id": 70}, {"id": 71}, {"id": 72}, {"id": 73}, {"id": 74}, {"id": 75}, {"id": 76}, {"id": 77}, {"id": 78}, {"id": 80}, {"id": 82}, {"id": 83}, {"id": 84}, {"id": 85}, {"id": 86}, {"id": 87}, {"id": 88}, {"id": 89}, {"id": 90}, {"id": 91}, {"id":