This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(RJSONIO) | |
library(foreign) | |
input_dir = "~/data/twitter-workshop/input/" | |
snow = read.csv(paste0(input_dir, "snow_pot.csv")) | |
props = read.dbf(paste0(input_dir, "SecondAuctionProperties.dbf")) | |
# Note: Need to remove a leading '\' from the MenByTract file before it will load |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.io | |
UNWANTED_KEYS = ('__globals__', '__header__', '__version__') | |
def load_dataset(path): | |
data = scipy.io.loadmat(path) | |
for key in UNWANTED_KEYS: | |
del data[key] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |