class: center, middle
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:7be03c2818d177cfe7b64eb1a0a1b7b108fb5b5a5764e3f27e4261fe691ac9ed" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Operations to perform: | |
Synchronize unmigrated apps: floppyforms, rest_framework_bulk, admin_export, impersonate, rest_framework, localflavor, rosetta, django_filters, naviance_sso, dajax, ldap_groups, customers, grappelli, compressor, djangobower, raven_compat, dajaxice, pagination, ckeditor, scaffold_report, autocomplete_light, djcelery, widget_tweaks, responsive_dashboard, massadmin, constance | |
Apply all migrations: administration, benchmark_grade, counseling, discipline, attendance, schedule, custom_field, contenttypes, simple_import, sis, sessions, reversion, work_study, auth, admissions, report_builder, standard_test, engrade_sync, database, admin, alumni, grades, default, benchmarks, volunteer_track | |
Synchronizing apps without migrations: | |
Creating tables... | |
Creating table ldap_groups_ldapgroup_groups | |
Creating table ldap_groups_ldapgroup | |
Creating table celery_taskmeta | |
Creating table celery_tasksetmeta | |
Creating table djcelery_intervalschedule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from visual import * | |
c = 3e08 | |
v = vector(0.5*c, 0, 0.9*c) | |
t = 0 | |
dt = 1e-9 | |
gamma_x = 1/sqrt(1 - (v.x/c)**2) | |
gamma_y = 1/sqrt(1 - (v.y/c)**2) | |
gamma_z = 1/sqrt(1 - (v.z/c)**2) | |
#function to increase resolution of shape from ints to floats from http://stackoverflow.com/a/477610 | |
def drange(start, stop, step): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find_non_unique(model, *fields): | |
from collections import defaultdict | |
d = defaultdict(list) | |
for instance in model.objects.all(): | |
d[tuple(getattr(instance, field) for field in fields)].append(instance) | |
return filter(lambda dups: len(dups)>1, d.values()) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:032716fc53e1db0b5fd33772e65e12acf781992c728b0aa4fde86f7864dfe9d1" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:3e7920f8aadc61c152ae38d7218c17697e7c1f46b33fb7b2ddc3c733cb7d530e" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:653a4581e6c6179fef75ec32cf4e96c58a6a1305d865384910608a2758ba95e6" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |