This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
from django.core.exceptions import ImproperlyConfigured | |
from django.core.management import call_command | |
from django.db.models.signals import post_syncdb | |
from south.models import MigrationHistory | |
import pizzanuvola_teaser.settings as settings | |
def migration_exists(appname, migrationnumber): | |
appname = appname.split('.')[-1] | |
return MigrationHistory.objects.filter(app_name=appname, migration__icontains=migrationnumber).exists() |
import requests | |
import json | |
class Flower: | |
DEFAULT_API_URL = 'https://api.crowdflower.com/v1/' | |
DEFAULT_API_HEADERS = {'content-type': 'application/json'} | |
def __init__(self, api_key, api_url = DEFAULT_API_URL, api_headers = DEFAULT_API_HEADERS): | |
self.api_key = api_key | |
self.api_url = api_url |
# 💡 NOTE: This only works if you are pretend to using `Django Console` feature in Pycharm | |
# Paste codes below into `Build, Execution, Deployment > Console > Django Console > Starting Script` | |
# requirements: `django_extensions`, `IPython` | |
import sys | |
import django | |
from IPython.core.getipython import get_ipython | |
from django_extensions.management.notebook_extension import load_ipython_extension |
python main.py data.json