Skip to content

Instantly share code, notes, and snippets.

View actongorton's full-sized avatar

A. H. Gorton actongorton

  • A. H. Gorton
  • California
View GitHub Profile
@actongorton
actongorton / instructions.md
Created August 6, 2018 14:38 — forked from rshorey/instructions.md
description of Lights, Camera, Algorithms session from SRCCON 2018

Lights, Camera, Algorithm

Act out and discuss machine learning algorithms. This activity is from a SRCCON 2018 session led by Jeremy Merrill and Rachel Shorey.

Materials

  • Index cards
  • pens/pencils
  • Dice with varying numbers of faces (several D10 and one D6 for sure)
  • Masking tape to mark floor
  • Paper, easel, marker
  • Stickers in several colors
@rodrigoolmo
rodrigoolmo / geoPolymorphicManager.py
Created December 5, 2013 13:33
If you use GeoDjango your models require a GeoManager model manager. If you use django-polymorphic for inheritance in Django your models require a PolymorphicManager model manager. What if you need both functionalities? Then use this manager: GeoPolymorphicManager
from django.contrib.gis.db import models
from django.contrib.gis.db.models.query import GeoQuerySet
from polymorphic import PolymorphicManager
from polymorphic.query import PolymorphicQuerySet
class GeoPolymorphicQuerySet(GeoQuerySet, PolymorphicQuerySet):
'''
QuerySet used in GeoPolymorphicManager.
'''