Skip to content

Instantly share code, notes, and snippets.

View josePhoenix's full-sized avatar

Joseph Long josePhoenix

View GitHub Profile
@armonge
armonge / fields.py
Created July 18, 2011 14:41
A Django custom modelfield, formfield and formwidget to select and save a set of geographic coordinates using Google Maps
class GoogleMapMarker(object):
def __init__(self, latitude, longitude):
self.latitude = latitude
self.longitude = longitude
def __unicode__(self):
return '%f,%f'%(self.latitude, self.longitude)
def __len__(self):
return len(self.__unicode__())
@mearns
mearns / inventory.py
Last active October 22, 2016 22:20 — forked from gmr/inventory.py
#! /usr/bin/env python
# vim: set fileencoding=utf-8:
""" Process URL for intersphinx targets and emit html or text """
def validuri(string):
return string
from sphinx.ext.intersphinx import read_inventory_v2
from posixpath import join
import pprint
import sys
import multiprocessing
import logging
import logging.handlers
import datetime
import time
import random
N_PROCESSES = 32