This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip freeze > requirements.txt | |
| $ virtualenv <env_name> | |
| $ source <env_name>/bin/activate | |
| (<env_name>)$ pip install -r path/to/requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Variable: ANDROID_HOME Value: C:\Development\adt-bundle\sdk | |
| Variable: ANT_HOME Value: C:\Development\apache-ant | |
| Variable: JAVA_HOME Value: C:\Program Files\Java\jdk1.6.0_45 | |
| Next I added the following values to the """""Path system variable""""" NO USER in Environment Variables: | |
| %JAVA_HOME%\bin;%ANT_HOME%\bin;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| post_max_size = 800M | |
| upload_max_filesize = 800M | |
| max_execution_time = 5000 | |
| max_input_time = 5000 | |
| memory_limit = 1000M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysqldump -h localhost -u user_name -p your_database_name (your_table_name_optative) > dump_file.sql | |
| mysql -u your_user -p your_database < dump_file.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ->heroku login | |
| abc@gmail.com & password | |
| ->cd C:\Users\yourusername\.ssh (OR for cygwin shell ->cd ~/.ssh) | |
| ->ssh-keygen -t rsa -f id_rsa | |
| if asks any passphrase don't use blank, fill with a passphrase,but not forget it. | |
| After generating the key you need to add it, like so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb devices | |
| # get device id | |
| adb -s <id> install file.apk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch <new_branch> | |
| git checkout <new_branch> | |
| git checkout master | |
| git merch <new_branch> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding=utf-8 | |
| # Superclase o clase padre/madre | |
| class Libro: | |
| # Inicializador | |
| def __init__(self, isbn, titulo, autor, precio): | |
| # Asignacion de variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A: | |
| def hola(self): | |
| print "Hola clase A" | |
| def a(self): | |
| print "Soy de A" | |
| class B: | |
| def hola(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A: | |
| def saludo(self): | |
| print "Hola, soy A." | |
| class B(A): | |
| def saludo(self): | |
| print "Hola, soy B." | |
| # En otro lenguaje se especificaría que el objeto sea | |
| # una instancia explícita de una clase común, mientras |