Skip to content

Instantly share code, notes, and snippets.

@mpriour
mpriour / Default.sublime-theme
Created April 1, 2013 20:47
My modified sublime text editor structural theme (editor itself, not code theme)
[
{
"class": "label_control",
"color": [255, 255, 255],
"shadow_color": [24, 24, 24],
"shadow_offset": [0, -1]
},
{
"class": "button_control",
"content_margin": [6, 5, 6, 6],
@mpriour
mpriour / readme.md
Last active December 15, 2015 05:38 — forked from max-mapper/readme.md
@mpriour
mpriour / server.js
Last active June 20, 2016 19:20
OpenShift Restify NodeJS server module
#!/bin/env node
// OpenShift NodeJS Restify Server
var restify = require('restify');
/**
* Define the basic server.
*/
exports = (function() {
// Scope.
@mpriour
mpriour / states.json
Created November 20, 2012 23:51 — forked from iwillig/states.json
{
"layer": {
"defaultStyle": {
"name": "pophatch"
}
}
}
....
label:
function: "strReplace(label, '-', '\n')"
....
line:
stroke:
width:
function: "ceil(pHisp * 10 / 3)"
@mpriour
mpriour / gist:4090971
Created November 16, 2012 21:14
possible filter function use in yaml
....
label:
function:
name: 'strReplace'
property: 'label'
search: '-'
replace: '\n'
....
line:
<TextSymbolizer>
<Label>
<ogc:Function name="strReplace">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>-</ogc:Literal>
<ogc:Literal>\n</ogc:Literal>
</ogc:Function>
</Label>
</TextSymbolizer>
name: Style for DMA
defaults:
line-color: &lclr '#FF0000'
case-color: &cclr '#000000'
breaks:
0: &zb0
min: 6
1: &zb1
max: 6
min: 8
@mpriour
mpriour / printng.html
Created October 24, 2012 19:50
printng html test blob
<html>
<head>
<style type="text/css">
body{background-color: red;}
h1{color: white; font-style: italic;}
p{color: blue; font-size: small;}
</style>
</head>
<body style="width: 1200px; height: 125px;">
<h1>Foo BAR baz</h1>
@mpriour
mpriour / maps209.json
Created September 11, 2012 16:33
map config JSON from data endpoint : maps/209/data
{
"sources": {
"1": {
"title": "Geonode WMS",
"url": "http://mapstory.dev.opengeo.org/geoserver/geonode/city_limits_individualized0/wms",
"restUrl": "/gs/rest",
"version": "1.1.1",
"hidden": true,
"id": "ext-gen167"
},