Skip to content

Instantly share code, notes, and snippets.

from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
import rest_framework
from collections import namedtuple
import re,sys
INDENT = ' '*2
# TODO(rrogers) 2015.06.01 - allow canonical, global nested-objects and
# automatically swap them in?
#
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
import rest_framework
from collections import namedtuple
import re,sys
INDENT = ' '*2
# TODO(rrogers) 2015.06.01 - allow canonical, global nested-objects and
# automatically swap them in?
#
// ==UserScript==
// @match http://ankiweb.net/*
// @match https://ankiweb.net/*
// ==/UserScript==
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");