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
| echo '{"count":7363,"_shards":{"total":1,"successful":1,"failed":0}}' | sed -e 's/^.*"count":\([^,]*\),.*$/\1/' |
| rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress SOURCE HOST:TARGET | |
| .idea |
| Add | |
| * * * * * env > ~/cronenv | |
| to your crontab, let it run once, turn it back off, then run | |
| env - `cat ~/cronenv` /bin/sh | |
| And you are now inside a sh session which has cron's environment |
| # 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