{{SITES_ROOT}}/etc/nginx.conf
/etc/nginx/conf.d/myproj.confs
/etc/nginx/sites-enabled/default
/etc/nginx/sites-available/myconf.conf
ln -s [source] [target]
ln -s /etc/nginx/sites-available/myconf.conf /etc/nginx/sites-enabled/defaultFor more comprehensive notes: https://github.com/pebreo/django-notes
# show migrations
./manage.py migrate --list
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
| //Based on gulpfile.js from Google Web Starter Kit. | |
| //https://github.com/google/web-starter-kit | |
| 'use strict'; | |
| // Include Gulp & Tools We'll Use | |
| var gulp = require('gulp'); | |
| var $ = require('gulp-load-plugins')(); | |
| var del = require('del'); | |
| var runSequence = require('run-sequence'); | |
| var browserSync = require('browser-sync'); |
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
| <html> | |
| <form id="checkout" method="post" action="{% url 'recurpayresult' %}"> | |
| {% csrf_token %} | |
| <input type="text" name="first_name"> | |
| <input type="text" name="last_name"> | |
| <div id="dropin"></div> | |
| <input type="submit" value="Pay $25"> <!-- braintree will use this $25 payment --> | |
| </form> | |
| <script src="https://js.braintreegateway.com/v2/braintree.js"></script> |
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
| //Based on gulpfile.js from Google Web Starter Kit. | |
| //https://github.com/google/web-starter-kit | |
| 'use strict'; | |
| // Include Gulp & Tools We'll Use | |
| var gulp = require('gulp'); | |
| var $ = require('gulp-load-plugins')(); | |
| var del = require('del'); | |
| var runSequence = require('run-sequence'); | |
| var browserSync = require('browser-sync'); |
-
divandspansare grouping tags -
classtags are mostly used for assigning styling to adiv -
classassigniments to an element are additive e.g. `class = 'class1 class2'`` -
the
classdefinition in CSS file/block that's more bottom takes precedence over the one on top, e.g. :
.class2 {
color: red;#PyBoard
# screen /dev/tty.usbmodem*
# Servo Example
# http://docs.micropython.org/en/latest/pyboard/tutorial/servo.html
import pyb
s1 = pyb.Servo(1) # pin X1
s1.angle(45)