Skip to content

Instantly share code, notes, and snippets.

@brucespang
brucespang / simplex_projection.py
Created June 23, 2016 19:11 — forked from daien/simplex_projection.py
Compute Euclidean projections on the simplex or L1-ball
""" Module to compute projections on the positive simplex or the L1-ball
A positive simplex is a set X = { \mathbf{x} | \sum_i x_i = s, x_i \geq 0 }
The (unit) L1-ball is the set X = { \mathbf{x} | || x ||_1 \leq 1 }
Adrien Gaidon - INRIA - 2011
"""
@brucespang
brucespang / vim.rb
Created October 31, 2011 10:10 — forked from uasi/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim < Formula
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
url 'https://vim.googlecode.com/hg/', :revision => '992b24149a9e'
version '7.3.333'
homepage 'http://www.vim.org/'
head 'https://vim.googlecode.com/hg/'