Skip to content

Instantly share code, notes, and snippets.

@pierremarc
pierremarc / mapnik-poly-pattern-svg.diff
Created June 26, 2012 22:27
SVG polygon symbolizer hack / mapnik
diff --git a/src/cairo_renderer.cpp b/src/cairo_renderer.cpp
index bf81cc5..0643da0 100644
--- a/src/cairo_renderer.cpp
+++ b/src/cairo_renderer.cpp
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*****************************************************************************/
-
+#define HAVE_CAIRO
@pierremarc
pierremarc / test_cc.py
Created September 19, 2012 15:21
Add files to a repo with pygit2
"""
test commit creation with pygit2
To see the result:
rm -rf foo && python test_cc.py && cd foo/ && git log --graph --oneline --date-order --decorate --color --all && git status && cd ..
"""
import os
import sys
import pygit2