Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Could this be valid Python? | |
if now >= T[4:20:PM]: sextou() | |
>>> t = T[4:20] | |
>>> t | |
T[4:20] |
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
# coding: utf8 | |
import re | |
from functools import reduce | |
def merge_dicts(*dicts): | |
# http://stackoverflow.com/questions/7204805/dictionaries-of-dictionaries-merge | |
if not reduce(lambda x, y: isinstance(y, dict) and x, dicts, True): | |
raise TypeError("Object in *dicts not of type dict") |
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
On Jun 11, 2:01 pm, Robert Kern <robert.k... at gmail.com> wrote: | |
> On 2009-06-11 14:56, Captain___nemo wrote: | |
> > Please advice me very simple implementation of voronoi diagram (given | |
> > coordinates). Please advice me simple python code preferably without- | |
> > hash, multi-threading, Delaunay Traingulation, | |
> | |
> You can't really do the Voronoi diagram without Delaunay Triangulation. They are | |
> two ways of looking at the same thing. | |
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
#!/usr/bin/python | |
# -*- coding: utf8 -*- | |
# We'll use the pyzotero project for server access | |
# See packages.python.org/Pyzotero/ | |
from pyzotero import zotero | |
import sys | |
# Python's built-in CSV support is pretty nice |