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
Format: YYYY-MM-DDTHH:mm:ss.sssZ | |
Date: ^\d{4}(-\d{2}){0,2}$ | |
Time: ^\d{2}(:\d{2}(:\d{2}(\.\d+)?)?)?$ | |
Time with optional timezone: ^\d{2}(:\d{2}(:\d{2}(\.\d+)?)?)?(Z|[\+|-]\d{2}:\d{2})?$ | |
Date and/or time with optional timezone: | |
(^\d{4}(-\d{2}){0,2})?((^|T)\d{2}(:\d{2}(:\d{2}(\.\d+)?)?)?(Z|[\+|-]\d{2}:\d{2})?)?$ | |
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
Moved to https://github.com/ppo/gist/tree/master/javascript/is-utils |
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
"""Object to store and manipulate lists of choices. | |
Requires ``django-model-utils``. | |
""" | |
from collections.abc import Iterator | |
from functools import partialmethod | |
from django import forms | |
from django.contrib.postgres.fields import ArrayField | |
from django.db import models |
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
#!/usr/bin/env bash | |
echo -e "$(cat <<EOT | |
\e[1;33mWARNING!\e[0;33m | |
Use only trusted project templates, as they might execute | |
code with the same level of access as your user.\e[0m | |
Copier: Create or update a project from a template. |