Skip to content

Instantly share code, notes, and snippets.

View ldacosta's full-sized avatar

Luis Da Costa ldacosta

View GitHub Profile
@luiscape
luiscape / install_packages.sh
Created January 16, 2017 14:36
Install Python dependency packages from requirements.txt using conda.
#
# Original solution via StackOverflow:
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t
#
#
# Install via `conda` directly.
# This will fail to install all
# dependencies. If one fails,
# all dependencies will fail to install.
@suhailshergill
suhailshergill / Foo.scala
Created January 30, 2014 18:18
scala: granular permissions/access restrictions
object Foo {
// consider the code in each `Foo.scala` object as if it were defined in a
// separate file
object `Traits.scala` {
object Permissions {
private[Permissions] sealed trait Permitted[C] { self: C => }
private[Permissions] sealed trait Permission { self: Permitted[_] =>
protected val Permission: Permission
}