Skip to content

Instantly share code, notes, and snippets.

Stephen Burrows melinath

  • Little Weaver Web Collective, LLC
  • Seattle, WA
Block or report user

Report or block melinath

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
melinath /
Last active May 4, 2017
Testing migrations
from django.apps import apps
from import call_command
from django.db.models.signals import pre_migrate, post_migrate
from django.test import TransactionTestCase
# See
# for the original code.
class MigrationTest(TransactionTestCase):
View minion.conf 'localhost'
mysql.port: 3306
mysql.user: 'mysql'
mysql.pass: ''
mysql.db: 'mysql'
mysql.unix_socket: '/opt/mysql/mysql.sock'
mysql.charset: 'utf8'
melinath /
Last active Aug 29, 2015
View spec example

These are example view specs for brambling's UserDashboardView and InviteAcceptView.

User dashboard

template: brambling/dashboard.html


  • upcoming_events: A list of public Events that haven't started yet, ordered by how soon they start
  • upcoming_events_interest: A list of public Events in the user's interest groups that haven't started yet, ordered by how soon they start
  • admin_events: A list of Events that the user can edit, ordered by how recently they were edited
  • registered_events: A list of upcoming Events that the user has bought (or started buying) a ticket for, ordered by when the event will start
melinath / armstrong-requirements.git
Created Jul 31, 2014
Armstrong dev requirements
View armstrong-requirements.git
-e git+git://
-e git+git://
-e git+git://
-e git+git://
-e git+git://
-e git+git://
-e git+git://
-e git+git://
-e git+git://
-e git+git://
melinath / gist:7933196
Last active Dec 31, 2015
Safety Dance Comment Policy
View gist:7933196
We believe that the highest priority for a dance community must be honoring the needs of its members for safety, respect, and empowerment, both physical and mental. Doing so requires taking into account the influence of race, class, gender, (dis)ability, age, and sexual orientation, as well as social capital, based on position in the community and/or technical skill.
This is a space for having conversations, sharing resources and ideas, and supporting/challenging each other as we do this necessary work in our communities.
Here are a few basic rules for this space:
* Sexist, homophobic, transphobic, racist, ableist, and other hateful language will not be tolerated.
* This is not a space for debating the validity of others’ experiences, especially in cases of harassment or assault.
* It’s not okay to tell someone else how they should feel.
melinath /
Created Sep 19, 2012
Scraping xkcd's click & drag bit by bit.
import json
import os
import time
import requests
ROOT_DIR = "/Users/melinath/Pictures/xkcd"
NOT_FOUND_PATH = os.path.join(ROOT_DIR, 'not_found.json')
if os.path.exists(NOT_FOUND_PATH):
melinath /
Created Mar 12, 2012
Templating test
from django.db import models
class Bar(models.Model):
name = models.CharField(max_length=30)
class Foo(models.Model):
name = models.CharField(max_length=200)
date = models.DateTimeField()
CELERY_IMPORTS = ('mainsite_project.celeryd_setup',)
View installation.rst
You can’t perform that action at this time.