Skip to content

Instantly share code, notes, and snippets.

View davebrent's full-sized avatar

Dave Poulter davebrent

  • Graphcore
  • Bristol
View GitHub Profile
@davebrent
davebrent / actual.json
Created January 2, 2019 17:03
Polygon intersection bug
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davebrent
davebrent / rhythms.py
Created January 12, 2015 22:22
Rhythms
"""A collection of functions and algorithms inspired by Godfried Toussaint's,
'Geometry of musical rhythm'.
A rhythm in the context of this module is represented by a list of attack's
(onsets) with no duration. Example a steady 4 x 4 beat could be denoted
as the list:
[1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]
"""
@davebrent
davebrent / rasterlite.c
Created November 8, 2014 10:17
Rasterlite python
#include <Python.h>
#include <sqlite3.h>
#include <spatialite/gaiaexif.h>
#include <rasterlite.h>
#define RASTERLITE_WRAP(NAME, FUNC, TYPE) \
static PyObject * NAME(PyObject *self, PyObject *args) { \
PyObject *object; \
void *handle = NULL; \
@davebrent
davebrent / msglinks
Created June 19, 2014 09:31
Links from Messages (OSX)