Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ateoto on github.
  • I am mattmccants (https://keybase.io/mattmccants) on keybase.
  • I have a public key whose fingerprint is 4BCF 6A95 25E8 0D4E 5168 305F C492 9F05 EE35 5602

To claim this, I am signing this object:

fab deploy
@ateoto
ateoto / models.py
Created February 26, 2014 18:31
django_polymorphic
"""
https://github.com/chrisglass/django_polymorphic
https://django-polymorphic.readthedocs.org/en/latest/
Try this out.
"""
class Ingredient(PolymorphicModel):
name = models.CharField(max_length=75)
class SimpleIngredient(Ingredient):
from django import forms
from django_summernote.widgets import SummernoteWidget
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from words.models import Entry
class EntryForm(forms.ModelForm):
@ateoto
ateoto / ateoto
Created June 5, 2013 22:00
nginx config
upstream django {
server localhost:8000;
}
server {
listen 80;
server_name ateoto.com;
location / {
proxy_pass http://django;
@ateoto
ateoto / gist:4717331
Last active December 12, 2015 04:49
Stuff to checkout.
http://knockoutjs.com/
http://kmalakoff.github.com/knockback/
@ateoto
ateoto / Coffee
Created December 29, 2012 15:21 — forked from anonymous/Coffee
For a ~16oz Chemex Cup
18oz H20
21g Coffee
@ateoto
ateoto / gist:3776819
Created September 24, 2012 16:23
Die Roller
import random
import re
def roll(what_roll):
"""
d20
d6+2
2d6
4d6+4
"""
class Animation(object):
def __init__(self, texture,
class AnimatedSprite(sf.Sprite):
def draw(self, target, states):
target.draw(self.texture)