Skip to content

Instantly share code, notes, and snippets.

@antoine-lizee
antoine-lizee / install_ensurepip.py
Last active July 6, 2016 02:13 — forked from uranusjr/install_ensurepip.py
Script to install ensurepip to Python. Works on MacOSX for Anaconda and classic python installs.
import os
import sys
import io
import tarfile
import urllib.request
import re
ARCHIVE_URL = 'http://d.pr/f/YqS5+'
@antoine-lizee
antoine-lizee / s_dplyr.R
Last active August 29, 2015 14:21 — forked from skranz/s_dplyr
# Helper functions that allow string arguments for dplyr's data modification functions like arrange, select etc.
# Author: Sebastian Kranz
# Examples are below
#' Modified version of dplyr's filter that uses string arguments
#' @export
s_filter = function(.data, ...) {
eval.string.dplyr(.data,"filter", ...)
}