This is a way to validate email by double email fields. Validation is via Javascript.
Files layout is:
../your-child-theme
|- functions.php
|- js/email-confirm.js
# Models | |
# ColourLabel | |
# name | |
# | |
# Ingredient | |
# name | |
# ColourLabelRelation | |
# | |
# ColourLabelRelation |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import mimetypes | |
import argparse | |
from django.utils.encoding import force_text | |
from django.utils.translation import ugettext as _ | |
from django.core.management.base import BaseCommand | |
from django.db import transaction |
import csv | |
from ingredients.models import Ingredient | |
f = csv.writer(open('ing-colors.out','wb')) | |
f.writerows(Ingredient.objects.filter( | |
dataset__name="multinet").values_list( | |
'ingredientdataset__engine_id', | |
'colour_dominant', | |
'colour_palette')) |
from mock import MagicMock | |
def mock_open_with_files(files): | |
""" | |
`files` - a dictionary of the form | |
{ | |
'/file/path/': 'file body', | |
... | |
} | |
""" |
startup_message off | |
hardstatus on | |
hardstatus alwayslastline | |
# Show current terminals and time | |
hardstatus string "%{.bW}%-w%{..G}%n %t%{-}%+w %=%{..G} %H %{..Y} %d/%m %C%a" | |
# allow scrolling |
This is a way to validate email by double email fields. Validation is via Javascript.
Files layout is:
../your-child-theme
|- functions.php
|- js/email-confirm.js
.google-maps-responsive { | |
position: relative; | |
padding-bottom: 75%; // This is the aspect ratio | |
height: 0; | |
overflow: hidden; | |
} | |
.google-maps-responsive iframe { | |
position: absolute; | |
top: 0; |
[ | |
{ | |
"name": "SERES VIVOS", | |
"id": "192", | |
"photo": "http://www.antcontroldeplagas.es/wp-content/uploads/2013/02/hormigas-head.jpg", | |
"d": "Las hormigas son bonitas", | |
"children": [ | |
{ | |
"name": "ANIMALES", | |
"id": "193", |
#For example, you can run Python’s built-in server: | |
python -m SimpleHTTPServer 8888 & |
>>> Status = namedtuple('Status', 'open pending closed')._make(range(3)) | |
>>> Status.open, Status.pending, Status.closed | |
(0, 1, 2) | |
>>> class Status: | |
open, pending, closed = range(3) | |
>>> Status.open, Status.pending, Status.closed | |
(0, 1, 2) |