Skip to content

Instantly share code, notes, and snippets.

Adam Pah adamrpah

Block or report user

Report or block adamrpah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adamrpah
adamrpah / amaral_install_pyenv
Created Aug 14, 2014
Amaral Lab Install pyenv
View amaral_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
@adamrpah
adamrpah / amaral_install_virtualenv
Last active Aug 29, 2015
Amaral Lab Installation of Virtualenvs
View amaral_install_virtualenv
#!/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_quest_bashrc
Last active Aug 29, 2015
Amaral .bashrc for Quest Computers
View amaral_quest_bashrc
# .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_part1
Created Aug 14, 2014
Amaral Python Packages Part 1
View amaral_python_packages_part1
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_python_packages_part2
Created Aug 14, 2014
Amaral Python Packages Part 2
View amaral_python_packages_part2
mpltools==0.1
scikit-image==0.10.1
brewer2mpl==1.4
statsmodels==0.5.0
View pyenv_install
#!/usr/bin/env python
import os
import json
import sys
def check_bashrc():
'''
Checks the bashrc for the appropriate pyenv lines
'''
View credit-delinquency-kaggle
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
@adamrpah
adamrpah / python-bootcamp-requirements
Created Aug 29, 2014
Python requirements.txt file the Northwestern Big Data Initiative Programming Bootcamp
View python-bootcamp-requirements
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
@adamrpah
adamrpah / got_social_network
Created Sep 4, 2014
Game of Thrones Social Network
View got_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",
@adamrpah
adamrpah / divvy_trips.json
Created Sep 4, 2014
Divvy trips network in JSON format
View divvy_trips.json
This file has been truncated, but you can view the full file.
You can’t perform that action at this time.