Skip to content

Instantly share code, notes, and snippets.

View adammiller's full-sized avatar

Adam Miller adammiller

View GitHub Profile
(ffenv)Adam-Millers-iMac:webifyme adam$ python ff4/manage.py syncdb
Traceback (most recent call last):
File "ff4/manage.py", line 46, in <module>
execute_manager(settings)
File "/Users/adam/Sites/barbarian/webifyme/ffenv/src/django/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/adam/Sites/barbarian/webifyme/ffenv/src/django/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/adam/Sites/barbarian/webifyme/ffenv/src/django/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
@adammiller
adammiller / douglasPeucker.js
Created February 14, 2011 16:54
Javascript implementation of the Douglas Peucker path simplification algorithm
var simplifyPath = function( points, tolerance ) {
// helper classes
var Vector = function( x, y ) {
this.x = x;
this.y = y;
};
var Line = function( p1, p2 ) {
this.p1 = p1;