Skip to content

Instantly share code, notes, and snippets.

View alexkahn's full-sized avatar

Alex Kahn alexkahn

  • Chicago, IL, USA
View GitHub Profile
#!/bin/python
# This simple Python script runs simulations for different retry algorithms
# The results are printed as CSV data to the console
# See this article on my blog for details:
# https://blog.miguelgrinberg.com/post/how-to-retry-with-class
from random import random, choice
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def replicate_company(apps, schema_editor):
"""
THIS FUNCTION IS BROKEN