Skip to content

Instantly share code, notes, and snippets.

View yuletide's full-sized avatar
🤘

Alex Yule yuletide

🤘
View GitHub Profile
@yuletide
yuletide / .block
Last active April 5, 2022 17:44 — forked from alexmacy/.block
Projection Transitions v4
license: gpl-3.0
@yuletide
yuletide / helpers.py
Created October 26, 2012 04:38 — forked from pwfff/helpers.py
coursera neural networks assignment 1 sample code (ported from octave)
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]
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
@yuletide
yuletide / hack.sh
Created April 8, 2012 01:28 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#