Skip to content

Instantly share code, notes, and snippets.

View marpontes's full-sized avatar

Marcello Pontes marpontes

View GitHub Profile
@marpontes
marpontes / gist:8919021
Last active August 29, 2015 13:56
Idea for CEP [brazilian postal code] GEO webservice - this is a sample document that will be store in Mongodb postal collection.
/*
* Model of document to be stored, maintained and incremented
*/
{
"_id": "51111040",
"pos": [-35.2560503, -5.896805199999999],
"cntr": {
"n": "Brazil",
@marpontes
marpontes / drill-param-control.js
Last active December 20, 2015 10:31
This is basically an object created to make it easy to handle the multi-valued MDX-formatted inputs being passed down to another artifacts, from a Pentaho CDE Dashboard to an Analyzer Report, for example. If the parameter is mdx-like, is multi-valued and the first is "All", then it fits!
/*
* This is basically an object created to make it easy to
* Handle the multi-valued MDX-formatted inputs being passed down to
* another artifacts, from a CDE Dashboard to an Analyzer Report, for example
*
* by @marpontes
*
* Ex
* <div id="SupplierHolder">
* <select multiselect>