Skip to content

Instantly share code, notes, and snippets.

@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>
name: Style for DMA
defaults:
line-color: &lclr '#FF0000'
case-color: &cclr '#000000'
breaks:
0: &zb0
min: 6
1: &zb1
max: 6
min: 8
<TextSymbolizer>
<Label>
<ogc:Function name="strReplace">
<ogc:PropertyName>name</ogc:PropertyName>
<ogc:Literal>-</ogc:Literal>
<ogc:Literal>\n</ogc:Literal>
</ogc:Function>
</Label>
</TextSymbolizer>
@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:
....
label:
function: "strReplace(label, '-', '\n')"
....
line:
stroke:
width:
function: "ceil(pHisp * 10 / 3)"
@mpriour
mpriour / states.json
Created November 20, 2012 23:51 — forked from iwillig/states.json
{
"layer": {
"defaultStyle": {
"name": "pophatch"
}
}
}
@mpriour
mpriour / readme.md
Last active December 15, 2015 05:38 — forked from max-mapper/readme.md
@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 / convertor.js
Last active December 16, 2015 02:09
bs script to convert old event docs to new event maps and wiki format
map2docu = function(evt, props){
var oldName = props[0];
var evtprops = props.slice(1,-1);
var desc = props.slice(-1)[0];
console.log('| class="code" | %s \n| class="code" | %s \n| %s. Should be used in favor of %s',
evt, evtprops[0] ? evtprops.join(',') : '', desc, oldName);
}
makeDocu = function(evts) {
i=0;
@mpriour
mpriour / README.md
Last active December 19, 2015 14:09
r.js web builder for arcgis AMD apps

Copy & save the concatentated AMD modules to a javascript file and include that in your application.

USE AT YOUR OWN RISK