This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Detect language by trigram sample analysis. | |
* Adapted by ppkrauss from http://www.corpuswiki.org/langdetect.html | |
*/ | |
class LangDetect { | |
private $models; | |
private $universeConfig; | |
private $universeOnDetection; | |
private $isoTr3to2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* DOMDocument for "Rapid application development". | |
* Do by overloading all DOMDocument methods, and add specialized methods. | |
* v0.1 2013-07-20 by ppkrauss, https://gist.github.com/ppKrauss/6099610 | |
* | |
* Convention over configuration: UTF8, etc. by convention. | |
* Like fDOMDocument, BetterDOMDocument, FluentDOM, etc, to be | |
* a (more frindly interface) wrapper to DOMDocument methods. | |
* Like BetterDOMDocument and fDOMDocument, but NOT extends DOMDocument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Organiza dados em "estrutura BrasilProtestos2013-estimCidadeFontes" | |
* dispostos no anexo do artigo "Protestos no Brasil em 2013" da Wikipedia. | |
* NOTA: proxima versao no forno, classes e traducao XML. | |
* http://pt.wikipedia.org/wiki/Protestos_no_Brasil_em_2013 | |
* http://pt.wikipedia.org/wiki/Anexo:Lista_de_cidades_participantes_dos_protestos_no_Brasil_em_2013 | |
* http://pt.wikipedia.org/wiki/Predefini%C3%A7%C3%A3o:BrasilProtestos2013-estimCidadeFontes . | |
*/ | |
header('Content-type: text/html; charset=UTF-8;' );// for txt and HTML source-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION shapedescr_sizes( | |
-- Shape-descriptor "as rectangle" for geometry description by sizes. | |
gbase geometry, -- input | |
-- p_seqs integer DEFAULT 8, -- deprecated? for st_buffer(g,w,p_seqs) or point-buffer inference | |
-- p_shape varchar DEFAULT '', -- will be endcap indicator | |
p_decplacesof_zero integer DEFAULT 6, -- precision of zero when rounding delta | |
p_dwmin float DEFAULT 99999999.0, -- change to ex. 0.0001, if to use. | |
p_deltaimpact float DEFAULT 9999.0 -- internal (maximized by probability of negative delta) | |
) RETURNS float[] AS $f$ | |
DECLARE |
NewerOlder