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
class ContactForm(forms.Form): | |
name = forms.CharField(max_length=60) | |
message = forms.CharField(max_length=200, widget=forms.TextInput) | |
class SubscriptionForm(forms.Form): | |
email = forms.EmailField() | |
want_spam = forms.BooleanField(required=False) | |
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
FROM python:2-alpine | |
ENV PYTHONUNBUFFERED=1 \ | |
PROJECT_ROOT=/srv | |
COPY requirements.txt $PROJECT_ROOT/ | |
RUN apk add --update --virtual build-dependencies build-base python-dev \ | |
&& cd $PROJECT_ROOT && pip install -r requirements.txt \ | |
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
function get_ansible_config(managersCount, managersStartNr, workersStartNr) { | |
var createAnsibleString = function(name, startNumber){ | |
return function(a, i) { | |
return name + (i + 1 + (startNumber || 0)) + ' ansible_ssh_host=' + a + ' ansible_ssh_user=ubuntu'; | |
} | |
}; | |
var addresses = $x('//*[@data-ng-if="ip.ip"]/text()') | |
.filter(function(a){return a.wholeText.trim() != ""}) | |
.map(function(a) {return a.wholeText.trim()}); | |
var str = ""; |
NewerOlder