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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<div id="map"></div> | |
<script src="http://polymaps.org/polymaps.min.js?2.5.0"></script> | |
<script> | |
var po = org.polymaps; | |
var map = po.map() | |
.container(document.getElementById("map").appendChild(po.svg("svg"))) |
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
..[%] sentry - ERROR - view exception | |
Traceback (most recent call last): | |
File "/home/vagrant/sg/simplegeo.com/lib/python2.6/site-packages/Django-1.2.4-py2.6.egg/django/core/handlers/base.py", line 100, in get_response | |
response = callback(request, *callback_args, **callback_kwargs) | |
File "/home/vagrant/sg/simplegeo.com/lib/python2.6/site-packages/django_sentry-1.8.4.2-py2.6.egg/sentry/tests/views.py", line 11, in raise_exc | |
raise Exception(request.GET.get('message', 'view exception')) | |
Exception: view exception | |
.EFF....EFFEBad data received | |
Traceback (most recent call last): | |
File "/home/vagrant/sg/simplegeo.com/lib/python2.6/site-packages/django_sentry-1.8.4.2-py2.6.egg/sentry/web/views.py", line 405, in store |
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
{% extends "docs/base.html" %} | |
{% load markup doc_tags compress %} | |
{% block title %}{{topic}} · {{article}}{% endblock %} | |
{% block js %} | |
{{block.super}} | |
{% compress js %} | |
<script type="text/javascript" charset="utf-8"> |
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
{% load doc_tags %} | |
<div id="{{topic.slug}}" class="topic"> | |
<h2 class="topic-title"><a href="{% url docs-topic topic.slug %}">{{topic}}</a></h2> | |
<ul class="toc-articles"> | |
{% for article in topic.articles %} | |
{% if user|can_see:article %} | |
<li class="toc-article"> | |
<h3 class="article-title"><a href="{% url docs-article topic.slug article.slug %}">{{article}}</a></h3> | |
<ul class="toc-sections"> |
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
{% extends "docs/base.html" %} | |
{% load compress %} | |
{% block js %} | |
{{block.super}} | |
{% compress js %} | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function(){ | |
$("ul.toc-sections a.more-info").click(function(){ |
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 django.contrib.auth.models import Group | |
from django.core.urlresolvers import reverse | |
from django.db import models | |
from django.utils.translation import ugettext_lazy as _ | |
''' | |
The Docs site will have heirarchy like follows: | |
Topic | |
| -- Article |
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
<div class="chat-bubble"> | |
Buongiorno! | |
<div class="chat-bubble-arrow-border"></div> | |
<div class="chat-bubble-arrow"></div> | |
</div> | |
.chat-bubble { | |
background-color:#EDEDED; | |
border:2px solid #666666; | |
font-size:35px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Autofill Form with SimpleGeo</title> | |
</head> | |
<body style="padding:20px 50px;"> | |
<h3>Example getting user's context using getLocation and pre-populating the form</h3> | |
<form action="." method="post"> | |
<p> |
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
// If we can create a SVG element, and it has the basic function of SVG | |
if(!!document.createElementNS | |
&& !!document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect) { | |
// The browser supports SVG | |
} else { | |
// The browser DOESN'T support SVG yet | |
} |
NewerOlder