if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
The SciPy Stack specification - http://www.scipy.org/stackspec.html#stackspec | |
NumPy>=1.6 | |
scipy>=0.10 | |
matplotlib>=1.1 | |
ipython>= 0.13 | |
pandas>=0.8 | |
sympy>= 0.7 | |
nose>= 1.1 |
virtualenv + python-future = broken virtualenv
For Ubuntu 14.04, this combination worked for me:
$ wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python3.4
https://ericstk.wordpress.com/2016/01/14/como-melhorar-meu-codigo-em-python-tornando-o-mais-pythonico-legivel-e-facil-de-dar-manutencao/ |
http://python-packaging-user-guide.readthedocs.org/en/latest/distributing/ | |
https://github.com/pypa/twine | |
python setup.py egg_info | |
python setup.py sdist bdist_wheel | |
twine upload dist/* |
$ sudo add-apt-repository ppa:rabbitvcs/ppa | |
$ sudo apt-get update | |
$ sudo apt-get install rabbitvcs-nautilus3 | |
# Optional | |
$ sudo apt-get install rabbitvcs-gedit | |
$ sudo apt-get install rabbitvcs-cli | |
$ sudo chown -R $USER:$USER ~/.config/rabbitvcs |
https://www.jetbrains.com/idea/help/configuring-ignored-files.html | |
https://github.com/github/gitignore/blob/master/Android.gitignore | |
http://stackoverflow.com/questions/28731814/what-files-should-i-be-ignoring-in-subversion-for-an-android-studio-project | |
http://stackoverflow.com/questions/27311746/mercurial-hgignore-for-android-studio-projects | |
http://stackoverflow.com/questions/16940934/what-files-should-i-add-to-svn-ignore-in-an-project-using-android-studio | |
http://blog.th4t.net/android-studio-gitignore.html | |
http://stackoverflow.com/questions/23487608/which-files-to-ignore-using-to-commit-to-svn-in-android-studio | |
*.apk | |
*.ap_ |
class Manager(object): | |
def __init__(self, cls_): | |
self.cls_ = cls_ | |
def all(self): | |
print(self.cls_.__name__) | |
class ModelMeta(type): |
class Manager(object): | |
def __init__(self): | |
self._inst = None | |
self._cls = None | |
def __get__(self, inst, cls=None): | |
self._inst = inst | |
self._cls = cls | |
return self |
class Manager(object): | |
def __init__(self, cls_): | |
self.cls_ = cls_ | |
def all(self): | |
print(self.cls_.__name__) | |
def model(cls): | |
setattr(cls, 'objects', Manager(cls)) |