Skip to content

Instantly share code, notes, and snippets.

@charset "UTF-8";
/************************************
* Reset *
************************************/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}:focus{outline:0;}body{line-height:1;color:#000;background: #fff;}ol,ul{list-style:none;}table{border-collapse:separate;border-spacing:0;}caption,th,td{text-align:left;font-weight:normal;}blockquote:before,blockquote:after,q:before,q:after{content:"";}blockquote,q{quotes:"" "";}.container_full{overflow:hidden;width:100%;}.padding_10{padding:10px;}.center{text-align:center;}.absolute{position:absolute!important;}.relative{position:relative!important;}.text-center{text-align:center;
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
@charset "UTF-8";
/************************************
* Reset *
************************************/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}:focus{outline:0;}body{line-height:1;color:#000;background: #fff;}ol,ul{list-style:none;}table{border-collapse:separate;border-spacing:0;}caption,th,td{text-align:left;font-weight:normal;}blockquote:before,blockquote:after,q:before,q:after{content:"";}blockquote,q{quotes:"" "";}.container_full{overflow:hidden;width:100%;}.padding_10{padding:10px;}.center{text-align:center;}.absolute{position:absolute!important;}.relative{position:relative!important;}.text-center{text-align:center;}.
def find_city(request):
ctx = {}
if 'q' in request.GET:
try:
# check to see if q is a int to assume a zipcode
zipcode = int(request.GET['q'])
# now check to see if the zip finds an ZipCode object
try:
zip_obj = ZipCode.objects.get(zip=zipcode)
city_obj = CityLocation.objects.get(
<?php
extract($_REQUEST);
function title2name($title){
$title = preg_replace('/^[^a-zA-Z]*[^a-zA-Z0-9]*/', '', $title);
return $title;
}
<?php
extract($_REQUEST);
function title2name($title){
$title = preg_replace('/^[^a-zA-Z]*[^a-zA-Z0-9]*/', '', $title);
return $title;
}
@property
def render_business_hours(self):
today = datetime.today()
day_table = [
'mon',
'tues',
'wed',
'thurs',
'fri',
'sat',
import os
from ast import literal_eval
from datetime import datetime
import pytz
from django.db import models
from django.conf import settings
from apps.themes.models import Template
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '/Users/robert/Desktop/test/development/forknsite/database.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
{% extends "main-site/base.html" %}
{% load sekizai_tags %}
{% block content %}
<div id="menu-editor">
<h1>Your Menus</h1>
{% for menu in menus %}
<div class="menu sortableCats" rel="{{ menu.id }}">