Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| (ns nakkaya.ppxml | |
| (:import [java.io StringReader StringWriter] | |
| [javax.xml.transform TransformerFactory OutputKeys] | |
| [javax.xml.transform.stream StreamSource StreamResult])) | |
| (defn ppxml | |
| "Accepts an XML string with no newline formatting and returns the | |
| same XML with pretty-print formatting, as described by Nurullah Akaya | |
| in [this post](http://goo.gl/Y9OVO)." | |
| [xml-str] |
| import httplib | |
| import urllib2 | |
| import ssl | |
| import certifi | |
| from backports.ssl_match_hostname import match_hostname | |
| class CertValidatingHTTPSConnection(httplib.HTTPConnection): | |
| default_port = httplib.HTTPS_PORT |
| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), |
| (ns postgis | |
| (:require [clj-json.core :as json]) | |
| (:use korma.core korma.db korma.sql.engine)) | |
| (defn intersects [first-geom second-geom] | |
| "An extended Korma predicate that uses the PostGIS function ST_Intersects." | |
| (sql-func "ST_Intersects" first-geom second-geom)) | |
| (defn from-wkt [wkt] | |
| "Create a PostGIS geometry with geographic SRID from WKT using ST_GeomFromText." |
| { "path": "/content/geometrixx/my-first-jinja-page", | |
| "properties": [ | |
| { "name": "jcr:primaryType", | |
| "value": "cq:Page" }], | |
| "nodes": [ | |
| { "path": "jcr:content", | |
| "properties": [ | |
| { "name": "jcr:primaryType", | |
| "value": "cq:PageContent"}, |
| "#wrapper": { | |
| // Set wrapper to adjust it's size to it's contents | |
| width: Ti.UI.SIZE, | |
| height: Ti.UI.SIZE, | |
| // Set stuff like borders and backgrounds on the wrapper | |
| backgroundColor: "red" | |
| } |
| package main | |
| import ( | |
| "database/sql" | |
| "github.com/mattn/go-sqlite3" | |
| "log" | |
| "os" | |
| ) | |
| func runQuery(db *sql.DB, query string) { |
| (ns midi-parser.core | |
| (:use clojure.java.data) | |
| #_(:use utils.utils) | |
| #_(:use vendors.debug-repl) | |
| (:import (java.io File) | |
| #_(java.util Arrays) | |
| #_(java.nio ByteBuffer) | |
| (javax.sound.midi MidiSystem Sequence MidiMessage MidiEvent ShortMessage MetaMessage Track))) | |
| ;***************** Utils ******************** |
| (ns reagent-test.core | |
| (:require [reagent.core :as reagent :refer [atom]] | |
| [datascript :as d] | |
| [cljs-uuid-utils :as uuid])) | |
| (enable-console-print!) | |
| (defn bind | |
| ([conn q] | |
| (bind conn q (atom nil))) |