Skip to content

Instantly share code, notes, and snippets.

View serge-gaia's full-sized avatar

Serge Le Breton serge-gaia

  • Gaia Resources
  • Australia
View GitHub Profile
@jams2
jams2 / libgeos.py
Created December 2, 2019 14:53
Fixing Django/GEOS compatibility
"""The version regex in django/contrib/gis/geos/libgeos.py fails on
the latest homebrew geos install at time of writing, with message:
django.contrib.gis.geos.error.GEOSException: Could not parse version info string "3.8.0-CAPI-1.13.1 "
The trailing whitespace is the culprit. Add a r'\s?$' to the end of the pattern.
"""
version_regex = re.compile(
@staltz
staltz / introrx.md
Last active May 18, 2024 05:17
The introduction to Reactive Programming you've been missing