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
| {% extends "base.html" %} | |
| {% block title %}Test django-paypal cart{% endblock %} | |
| {% block content %} | |
| <h1>Testing django-paypal cart</h1> | |
| {{ form.render }} | |
| {% endblock %} |
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
| #!/bin/sh | |
| # make sure requirements.txt is up to date with every commit | |
| # by comparing the output of pip freeze | |
| pip freeze | diff requirements.txt - > /dev/null | |
| if [ $? != 0 ] | |
| then | |
| echo "Missing python module dependencies in requirements.txt. Run 'pip freeze > requirements.txt' to update." | |
| exit 1 | |
| fi |
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
| #!/bin/bash | |
| cd ./$(git rev-parse --show-cdup) | |
| result=$(mktemp /tmp/pre-commit.XXXXX) | |
| STAGED=${STAGED:---staged} | |
| changed_py=$(git diff --name-only --diff-filter=AM $STAGED | grep -E '\.py$') | |
| changed_js=$(git diff --name-only --diff-filter=AM $STAGED | grep -E '\.js$') | |
| [[ -z $changed ]] && exit 0 |
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
| # -*- coding: utf-8 -*- | |
| from django import forms | |
| from crispy_forms.helper import FormHelper | |
| from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field | |
| from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions | |
| class MessageForm(forms.Form): | |
| text_input = forms.CharField() |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| typedef unsigned int u32; | |
| typedef unsigned long long u64; | |
| //------------------------------------------------------------------------- | |
| // WorkArea | |
| //------------------------------------------------------------------------- |
NewerOlder