This file contains 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
############# PYTHON TEST ##################### | |
# 1. Create a list of integers from 2 to 30, and another list from 3-50 | |
def list_creation(): | |
first_list = range(2,31) | |
second_list = range(3,51) | |
print "First List (2-30) : ",first_list | |
print "Second List (3-50) : ",second_list |
This file contains 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
=========================== SETTING WORKING ENVIORNMENT ========================= | |
sudo apt-get install python-setuptools python-pip postgresql libjpeg62 libjpeg62-dev libpq-dev python-dev python-virtualenv zlib1g-dev libfreetype6 libfreetype6-dev python-psycopg2 libmysqlclient-dev | |
1. Create virtual env through terminal | |
$ virtualenv ENV_Name |
This file contains 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 REPOSITORY ==================================== | |
https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-init | |
Start from the beginning, because we need to initialize the git empty repository for our project. | |
$ git init - if encountered any error for git , just install, |
This file contains 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
======================= Model Translation =============================================== | |
Its also very simpleModel Translation, if you want to translate data inside the db, then it will add new field for the languages that you have set in settings.py, | |
#### Just follow this: | |
http://django-modeltranslation.readthedocs.org/en/latest/ |
This file contains 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 based view in django ===================================== | |
For class based view, check this link, otherwise download django pdf doc, and just search for that, | |
Dont worry its very simple, if you know oops and python mixins. | |
https://docs.djangoproject.com/en/1.8/topics/class-based-views/ | |
https://docs.djangoproject.com/en/1.8/topics/class-based-views/intro/ | |
https://docs.djangoproject.com/en/1.8/topics/class-based-views/generic-display/ | |
https://docs.djangoproject.com/en/1.8/topics/class-based-views/generic-editing/ |
This file contains 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
REST : | |
Representational State Transfer | |
Garbage Collector: | |
It works by reference counting and by cycle detection. | |
Multi Threading: | |
Global Interpreter Lock (GIL) |
This file contains 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 Tutorials | |
=============== | |
http://pcottle.github.io/learnGitBranching/?demo | |
https://try.github.io/levels/1/challenges/1 | |
Create a new local branch from develop: | |
git fetch origin develop | |
git checkout develop |
This file contains 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
MAC OS - DJANGO, MYSQL , POSTGRESQL Basic Setup | |
================================================= | |
1. Install and configure Sublime Text 3 for Django | |
http://www.marinamele.com/2014/03/install-and-configure-sublime-text-3.html | |
2. Install and Configure MySQL for Django : | |
http://www.marinamele.com/taskbuster-django-tutorial/install-and-configure-mysql-for-django |
This file contains 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
Tutorials | |
https://www.youtube.com/watch?v=aooPutfcQjg&feature=youtu.be | |
https://www.youtube.com/watch?v=ADqBx5Ja9Ek&feature=youtu.be | |
https://www.youtube.com/watch?v=frGy-nGoGUY&feature=youtu.be | |
Basic Tutorial : http://www.steves-internet-guide.com/into-mqtt-python-client/ |
This file contains 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
> brew update | |
> brew install -v cmake | |
> brew install opencv | |
> https://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/ | |
> ln -s /usr/local/lib/python2.7/site-packages/cv2.so /usr/local/lib/python2.7/site-packages/cv.py /Users/Varnan/ENVS/raybaby/lib/python2.7/site-packages |