Skip to content

Instantly share code, notes, and snippets.

@pedrokoblitz
pedrokoblitz / notas_nlp.txt
Last active December 22, 2015 05:19
detalhes de estrutura de dados para processamento de linguagem
estado
tokenstore -> testes finais
processadores -> estagios iniciais
refazer extrator regexp da aranha
colecionar codigo para filas e daemon
daemon inicia aranhas e workers
sysctl gerencia workers
<?php
/* Merge multiple RSS feeds with SimplePie
*
* Just modify the path to SimplePie and
* modify the $feeds array with the feeds you want
*
* You should probably also change the channel title, link and description,
* plus I added a CC license you may not want
*
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/
@pedrokoblitz
pedrokoblitz / distancia_coordenadas.sql
Created September 20, 2012 18:47
Calculate Distance In Mysql with Latitude and Longitude
SELECT ((ACOS(SIN($lat * PI() / 180) * SIN(lat * PI() / 180) + COS($lat * PI() / 180) * COS(lat * PI() / 180) * COS(($lon – lon) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS `distance` FROM `members` HAVING `distance`<=’10′ ORDER BY `distance` ASC
@pedrokoblitz
pedrokoblitz / conjunto.php
Created September 19, 2012 21:46
php equivalent of python set(list)
function conjunto($dados)
{
return array_map("unserialize", array_unique(array_map("serialize", $dados)));
}