Skip to content

Instantly share code, notes, and snippets.

timeEvents = Object()
timeEvents["#somevid"]["125"] = function(){ $("#somediv").show() }
function timeListener(el) {
$(el).bind('timeupdate', function(){
time = this.currentTime;
if timeEvents[el][time]
timeEvents[el][time]()
});
}
>>> from pinax.apps.projects.models import Project
>>> from django.contrib.auth.models import User
>>> from pinax.apps.tasks.models import Task
>>> t1 = Task.objects.get(pk=1)
>>> t2= Task.objects.get(pk=2)
>>> t2.get_absolute_url()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/issackelly/envs/new/lib/python2.6/site-packages/django/utils/functional.py", line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))