Skip to content

Instantly share code, notes, and snippets.

View dzolo's full-sized avatar

Ondřej Fibich dzolo

  • Techniserv
  • Rousínov
View GitHub Profile
@timlinux
timlinux / gist:a8ae0aed44ccd2e4c7bb
Last active October 25, 2018 07:29
How to build QGIS in QtCreator on Ubuntu 14.04
apt-get install -y qgis cmake-curses-gui build-essential \
     git gitg meld \
     qtcreator qt4-designer \
     flex bison libgeos-dev libgdal1-dev \
     pyqt4-dev-tools libgsl0-dev libexpat1-dev libproj-dev \
     libqwt-dev libspatialindex-dev libqscintilla2-dev\
     libqscintilla2-dev python-qscintilla2 python-dev python-sip-dev \
 python-qt4-dev postgresql-client-9.3 \
@pgiraud
pgiraud / ExtendedRenderers.js
Last active April 4, 2024 19:09
OpenLayers 2 - Direction arrows along linestrings
/* Copyright Pierre GIRAUD, https://gist.github.com/pgiraud/6131715
* Published under WTFPL license. */
/**
* @requires OpenLayers/Renderer/SVG.js
*/
OpenLayers.Renderer.SVGExtended = OpenLayers.Class(OpenLayers.Renderer.SVG, {
eraseGeometry: function(geometry, featureId) {
this.removeArrows(geometry);
@t0kieu
t0kieu / HOWTO.md
Created July 25, 2012 13:26 — forked from bjornharrtell/HOWTO.md
How to configure and use JBoss AS 7 with Hibernate Spatial and PostGIS

How to configure and use JBoss AS 7 with Hibernate Spatial and PostGIS

This is in the scenario where you want JBoss to handle the datasource and transactions, for example when using injected @PersistenceContext in a @Stateless resource. I like it especially when writing REST services with JAX-RS (example code included below).

Create dir:

/modules/org/postgresql/main
@bjornharrtell
bjornharrtell / HOWTO.md
Created July 5, 2012 15:47
How to configure and use JBoss AS 7 with Hibernate Spatial and PostGIS

How to configure and use JBoss AS 7 with Hibernate Spatial and PostGIS

This is in the scenario where you want JBoss to handle the datasource and transactions, for example when using injected @PersistenceContext in a @Stateless resource. I like it especially when writing REST services with JAX-RS (example code included below).

Create dir:

/modules/org/postgresql/main