https://code.djangoproject.com/wiki/DjangoAndPyPy
http://pypy.org
http://doc.pypy.org
Os testes foram feitos no Ubuntu x64
OBS: Já tinha instalado o python3, setuptools, virtualenv e pip.
| #Download Elementary OS from here: | |
| #http://sourceforge.net/projects/elementaryos/files/stable/ | |
| #First you update your system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| #Install Google Chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
| Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
| Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) |
| #Update system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| #Java | |
| sudo apt-get install openjdk-8-jdk | |
| #File Compression Libs | |
| sudo apt-get install unace unrar zip unzip xz-utils p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller | |
| #Install Ubuntu Restricted Extras |
| sudo apt-get install sqlite3 libsqlite3-dev libreadline-dev libssl-dev build-essential | |
| #depois o python... | |
| cd /opt | |
| sudo wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz | |
| sudo tar -xzvf Python-3.6.5.tgz | |
| cd Python-3.6.5/ | |
| sudo ./configure | |
| sudo make |
| sudo apt-get install python3-dev python3-pip python3-setuptools | |
| sudo pip3 install virtualenv | |
| #Vamos criar nosso virtualenv | |
| cd | |
| virtualenv nome-que-deseja | |
| #Agora vamos entrar dentro do ambiente virtual que criamos e vamos ativá-lo | |
| cd nome-que-escolheu/ | |
| source bin/activate |
| sudo mkdir /opt/java && cd /opt/java | |
| cd /opt/java | |
| sudo wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz" | |
| sudo tar -zxvf jdk-8u45-linux-x64.tar.gz | |
| cd jdk1.8.0_45/ | |
| sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.8.0_45/bin/java 100 | |
| sudo update-alternatives --config java | |
| sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.8.0_45/bin/javac 100 | |
| sudo update-alternatives --config javac | |
| sudo update-alternatives --install /usr/bin/jar jar /opt/java/jdk1.8.0_45/bin/jar 100 |
| /** | |
| * Changes value to past tense. | |
| * Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
| * http://jsfiddle.net/bryan_k/0xczme2r/ | |
| * | |
| * @param {String} value The value string. | |
| */ | |
| Vue.filter('past-tense', function(value) { | |
| // Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
| var vowels = ['a', 'e', 'i', 'o', 'u']; |
https://code.djangoproject.com/wiki/DjangoAndPyPy
http://pypy.org
http://doc.pypy.org
Os testes foram feitos no Ubuntu x64
OBS: Já tinha instalado o python3, setuptools, virtualenv e pip.
| import re | |
| """ | |
| Detect browser and it's version. | |
| Now it works only for few moct common browsers. Full list of browsers and | |
| theire user-agent you can find here: http://www.useragentstring.com/pages/useragentstring.php | |
| Version: 0.1 | |
| Author: Andrey Nikishaev | |
| Site: http://creotiv.in.ua/ |
| * Colocar janelas no centro | |
| sudo apt-get install compizconfig-settings-manager | |
| Then open it and go to Window Management > Place Windows, enable it, and in "Placement Mode" choose Centered | |
| * Instalar drivers gráficos proprietários | |
| sudo add-apt-repository ppa:graphics-drivers/ppa | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| * Descompactar arquivos TAR.XZ |