Skip to content

Instantly share code, notes, and snippets.

View pjhoberman's full-sized avatar

PJ Hoberman pjhoberman

  • Denver, Colorado
View GitHub Profile
from django.db import models
from people.models import Person
class Lead(models.Model):
summary = models.CharField(max_length=140, help_text="Describe it in a tweet or less")
description = models.TextField(null=True, blank=True, help_text="More details go here")
date_entered = models.DateField(auto_now_add=True)
date_due = models.DateField(blank=True, null=True)
entered_by = models.ForeignKey('people.Person', related_name="lead_entered_by")
assigned_to = models.ForeignKey('people.Person', related_name="lead_assigned_to")
# Django settings for editorial project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', '[email protected]'),
)
MANAGERS = ADMINS
<head>
<!-- a bunch of stuff -->
<!-- adzerk -->
<script type="text/javascript">var p="http",d="static";if(document.location.protocol=="https:"){p+="s";d="engine";}var z=document.createElement("script");z.type="text/javascript";z.async=true;z.src=p+"://"+d+".adzerk.net/ados.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s);</script>
<script type="text/javascript">
var ados = ados || {};
ados.run = ados.run || [];
ados.run.push(function() {
function jqueryLoaded() {
parent.jQuery(document).ready(function() {
parent.jQuery(window.parent.document).find('#page_content').css('background', 'transparent url(http://static.mapmyfitness.com/d/client/Brooks/Skin/BG_1900x750_4.jpg) no-repeat top center');
parent.jQuery(window.parent.document).find('.row_top').css('border-bottom', 'none');
parent.jQuery(window.parent.document).find('.row_top, .row_styles').css('background', 'none');
parent.jQuery(window.parent.document).find('.hero_row').css('background', 'none')
parent.jQuery(window.parent.document).find('.background_skin_link').show().attr('href', 'http://adclick.g.doubleclick.net/aclk%253Fsa%253Dl%2526ai%253DBkjC9saYjUemaIeWwwQHf_oG4AQEAewAQARgBILlgKAQwATgBUMCZht4FWNXZtZpUiAEBkAEAsgEKZ29vZ2xlLmNvbboBCTcyOHg5MF9hc8ABAsgBCdoBJ2h0dHA6Ly93d3cuZ29vZ2xlLmNvbS9hZG1hbmFnZXIvcHJldmlld8ACAuACAagDAbgEAQ%2526preview%253D%2526num%253D1%2526sig%253DAOD64_1S2oJfzD-000hTtvOf5P9KxaWISw%2526client%25
throw () {
echo "$*" >&2
exit 1
}
tokenize () {
local ESCAPE='(\\[^u[:cntrl:]]|\\u[0-9a-fA-F]{4})'
local CHAR='[^[:cntrl:]"\\]'
local STRING="\"$CHAR*($ESCAPE$CHAR*)*\""
if (typeof define !== "function") {
define = function(a,b,f) { f(); }
}
define('optimizely',
[],
function defineWrap() {
window['_gaq']=window['_gaq']||[];
<script type="text/javascript">
var DFP_BG = {
bgcolor: '#fff',
repeat: 'no-repeat',
image_url: 'http://static.mapmyfitness.com/d/client/EAS/Skin/BG_skin-1920x750_9.jpg',
ad_id: '22',
clickable: true,
c_top: '1px',
c_left: '-681px',
c_width: '210px',
<script type="text/javascript">
var DFP_BG = {
bgcolor: '#fff',
repeat: 'no-repeat',
image_url: 'http://static.mapmyfitness.com/d/client/Brooks/Skin/BG_1900x750_4.jpg',
ad_id: '22',
clickable: true,
c_top: '1px',
c_left: '-681px',
c_width: '210px',
var DFP_BG = {
bgcolor: '#fff',
repeat: 'no-repeat',
image_url: 'http://static.mapmyfitness.com/d/client/Brooks/Skin/BG_1900x750_4.jpg',
ad_id: '22',
clickable: true,
c_top: '1px',
c_left: '-681px',
c_width: '210px',
<script type="text/javascript">
var DFP_BG = {
bgcolor: '#fff',
repeat: 'no-repeat',
image_url: 'http://static.mapmyfitness.com/d/client/Brooks/Skin/BG_1900x750_4.jpg',
ad_id: '22',
clickable: true,
c_top: '1px',
c_left: '-681px',
c_width: '210px',