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
file -i `find templates/ | xargs` | sed -r '/charset=utf-8/d' | sed -r '/charset=binary/d' |
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
import random | |
from circuits.models import Circuit | |
from user_profile.models import UserProfile | |
circuits = Circuit.objects.all() | |
profiles = UserProfile.objects.all() | |
countdown = 100 | |
while countdown > 0: | |
circuit = random.choice( circuits ) |
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
import random | |
from circuits.models import Circuit | |
from user_profile.models import UserProfile | |
circuits = Circuit.objects.all() | |
users = UserProfile.objects.all() | |
countdown = 1 | |
while countdown > 0: | |
circuit = random.choice( circuits ) |
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 | |
ack '# TODO' apps --ignore-dir=common > TODO | |
git add ${GIT_DIR}/TODO |
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 Gifts(models.Model): | |
""" | |
Represents the relationship between a Card, and Accounts | |
""" | |
#created_by? | |
number of coupons |
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 | |
# | |
# Execute in the repo root dir | |
# | |
git ls-tree -r HEAD | awk '{print $4}' | tr -s '\n' ' ' | xargs -n 1 git blame| awk '{print $1,$2,$3,$4,$5,$6,$7}' | gsed -r 's/.*\((.*?) [0-9]{4}-[0-9]{2}-[0-9]{2} .*/\1/p' | sort | uniq -c | sort -r |
NewerOlder