###ANGULAR.JS
<html ng-app>
###Data Binding
<input type="text" ng-model="yourModel">
from ftplib import FTP | |
import sys, os | |
# Connect | |
ftp = FTP('serverName') | |
ftp.login('user', 'password') | |
# Directory of the local files | |
root = "path/to/root/directory/" |
https://kippt.com/netoxico/web-development/clips/8293246 |
git config --global color.ui auto |
https://github.com/netoxico/django-bootstrap |
http://www.web2fb2.net/ |
###ANGULAR.JS
<html ng-app>
###Data Binding
<input type="text" ng-model="yourModel">
db.collection.find({ query },{"field to show": true, "field to show": true}) | |
db.collection.find({ query },{"field to show": true, "_id": false }) | |
python -m SimpleHTTPServer | |
python -m SimpleHTTPServer 8080 |
########################## | |
### .htaccess | |
### /(manage.py dir)/public | |
########################## | |
AddHandler fcgid-script .fcgi | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ django.fcgi/$1 [QSA,L] |
python manage.py shell: | |
>>> sql = '''drop table mytable cascade; | |
... drop table mytable2; ''' | |
>>> | |
>>> from django.db import connections, transaction | |
>>> cursor = connections['default'].cursor() | |
>>> cursor.execute(sql) |