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
@adamrpah
adamrpah / got_social_network
Created September 4, 2014 16:35
Game of Thrones Social Network
{
"nodes": [
{
"house": "Stark",
"group": 2,
"name": "Eddard",
"degree": 38,
"desc": "Eddard Stark, also affectionately called \"Ned\", is the head of House Stark, Lord of Winterfell, and Warden of the North. He is a close friend to King Robert Baratheon, whom he was raised with and helped to win the Iron Throne, and is eventually named his Hand. \nHe is one of the major POV Characters in the books. In the TV series, he is played by Sean Bean."
}, {
"house": "Stark",
This file has been truncated, but you can view the full file.
,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
@adamrpah
adamrpah / python-bootcamp-requirements
Created August 29, 2014 03:46
Python requirements.txt file the Northwestern Big Data Initiative Programming Bootcamp
Cython==0.20.2
Jinja2==2.7.2
MarkupSafe==0.23
dateutils==0.6.6
gnureadline==6.3.3
ipython==2.0.0
matplotlib==1.4
networkx==1.8.1
nose==1.3.3
numpy==1.8.1
#!/usr/bin/env python
import os
import json
import sys
def check_bashrc():
'''
Checks the bashrc for the appropriate pyenv lines
'''
@adamrpah
adamrpah / amaral_quest_bashrc
Last active August 29, 2015 14:05
Amaral .bashrc for Quest Computers
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export PATH=$PATH:/projects/b1022/LabTools
alias l='ls -lh'
@adamrpah
adamrpah / amaral_python_packages_part2
Created August 14, 2014 16:21
Amaral Python Packages Part 2
mpltools==0.1
scikit-image==0.10.1
brewer2mpl==1.4
statsmodels==0.5.0
@adamrpah
adamrpah / amaral_python_packages_part1
Created August 14, 2014 16:21
Amaral Python Packages Part 1
Cython==0.20.2
biopython==1.64
Jinja2==2.7.2
configobj==5.0.5
MarkupSafe==0.23
dateutils==0.6.6
gnureadline==6.3.3
ipython==2.0.0
joblib==0.7.1
matplotlib==1.3.1
@adamrpah
adamrpah / amaral_install_virtualenv
Last active August 29, 2015 14:05
Amaral Lab Installation of Virtualenvs
#!/bin/bash
set -e
#Check for not system python2.7
if [ ! -d "$HOME/.pyenv/versions/2.7.8" ] ; then
pyenv install 2.7.8
fi
#Check for the virtual env existence
if [ ! -d "$HOME/.pyenv/versions/general" ] ; then
pyenv virtualenv 2.7.8 general
@adamrpah
adamrpah / amaral_install_pyenv
Created August 14, 2014 16:17
Amaral Lab Install pyenv
#!/usr/bin/env bash
set -e
# https://github.com/yyuu/pyenv-installer
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
echo -e "\nChecking if we need to modify your .bashrc\n"
while read line
do