Skip to content

Instantly share code, notes, and snippets.

View jabooth's full-sized avatar

James Booth jabooth

View GitHub Profile
@jabooth
jabooth / dataset.sh
Last active August 29, 2015 14:26
Upload a dataset release to GitHub
#! /bin/bash
#
# Upload release datasets to github.
#
# Usage:
# ~/dataset.sh ./path/to/dataset
#
# Note that the path should go to the internal file inside the git repo
# in question, and not that by convention this folder name MUST MATCH
# the name of the repo.
@jabooth
jabooth / condapure.sh
Last active August 29, 2015 14:26
A little script for building and uploading pure-Python conda packages.
#! /bin/sh
#
# -- CONDAPURE - easy conda skeleton uploading --
#
# Usage: make a working dir and cd into it:
# > mkdir tmp_build && cd tmp_build
# > bash condapure.sh <pypi_package_name> <binstar_org>
#
# E.g. > bash -x condapure.sh tinys3 menpo
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jabooth
jabooth / Advanced Python - 3. Iterators and higher-order functions.ipynb
Last active August 29, 2015 14:16
Advanced Python - 3. Iterators and higher-order functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jabooth
jabooth / Advanced Python - 2. Containers.ipynb
Created March 8, 2015 17:08
Advanced Python - 2. Containers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jabooth
jabooth / Advanced Python - 1. Basics.ipynb
Created March 8, 2015 17:06
Advanced Python - 1. Basics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jabooth
jabooth / Introduction to Python for Algorithms 202.ipynb
Last active August 29, 2015 14:14
Introduction to Python for Algorithms 202
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jabooth
jabooth / Piecewise_Affine.ipynb
Created September 3, 2014 08:42
Timings of PWA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from conda_build.metadata import MetaData
from conda_build.build import bldpkg_path
import os
print(bldpkg_path(MetaData(os.getcwd())))