Skip to content

Instantly share code, notes, and snippets.

class OrgAccess(object):
""" Extract Region, Area, Branch, District codes from permissions
"""
def __init__(self, permissions):
OrgAccess.permissions = permissions
@classmethod
def regions(cls):
return [p[10:] for p in cls.permissions if p[0:10] == 'DashRegion']
@jalanb
jalanb / mplayer_install.log
Created February 1, 2012 13:04
Errors installing mplayer on OS X Lion
$ brew install mplayer
==> Installing mplayer dependency: pkg-config
==> Downloading http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz
File already downloaded in /Users/jab/Library/Caches/Homebrew
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.25 --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X1
==> make
make all-recursive
Making all in glib-1.2.10
CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
./config.status: line 682: X: command not found