Skip to content

Instantly share code, notes, and snippets.

View nazareno's full-sized avatar

nazareno nazareno

View GitHub Profile
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.FileVisitor;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.List;
@nazareno
nazareno / contagens-origens-destinos.csv
Created November 23, 2014 20:43
Origens-destinos dos ciclistas em CG
creditor debtor amount risk
CATOLÉ BODOCONGÓ 2 2
CENTRO BODOCONGÓ 5 5
DISTRITO INDUSTRIAL BODOCONGÓ 1 1
JOSÉ PINHEIRO BODOCONGÓ 2 2
LIBERDADE BODOCONGÓ 1 1
MALVINAS BODOCONGÓ 3 3
MONTE CASTELO BODOCONGÓ 1 1
CATOLÉ CATOLÉ 7 7
CENTRO CATOLÉ 1 1
@nazareno
nazareno / gist:070637804fa108e0e5ee
Created April 29, 2015 16:35
Exemplo ajax com requisição ao youtube
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Uma certa ajuda online.</title>
</head>
<body>
<h1>As vezes os outros sabem das coisas</h1>
<div id="buttons">
@nazareno
nazareno / index.html
Created June 3, 2015 03:49
House of Cunha - alguns partidos
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.css'>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='//d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.js' type='text/javascript'></script>
<script src='//nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
@nazareno
nazareno / email.txt
Last active August 29, 2015 14:24
Demo do pacote caret para treinar e escolher parâmetros de modelos de classificação binária. (aqui, kNN e SVM)
spam to_multiple from cc sent_email time image attach dollar winner inherit viagra password num_char line_breaks format re_subj exclaim_subj urgent_subj exclaim_mess number
0 0 1 0 0 2011-12-31 22:16:41 0 0 0 no 0 0 0 11.37 202 1 0 0 0 0 big
0 0 1 0 0 2011-12-31 23:03:59 0 0 0 no 0 0 0 10.504 202 1 0 0 0 1 small
0 0 1 0 0 2012-01-01 08:00:32 0 0 4 no 1 0 0 7.773 192 1 0 0 0 6 small
0 0 1 0 0 2012-01-01 01:09:49 0 0 0 no 0 0 0 13.256 255 1 0 0 0 48 small
0 0 1 0 0 2012-01-01 02:00:01 0 0 0 no 0 0 2 1.231 29 0 0 0 0 1 none
0 0 1 0 0 2012-01-01 02:04:46 0 0 0 no 0 0 2 1.091 25 0 0 0 0 1 none
0 1 1 0 1 2012-01-01 09:55:06 0 0 0 no 0 0 0 4.837 193 1 0 0 0 1 big
0 1 1 1 1 2012-01-01 10:45:21 1 1 0 no 0 0 0 7.421 237 1 0 0 0 18 small
0 0 1 0 0 2012-01-01 13:08:59 0 0 0 no 0 0 0 3.051 69 0 0 0 0 1 small
@nazareno
nazareno / index.html
Created July 31, 2015 14:09
House of Cunha - alguns partidos
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.css'>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='//d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.js' type='text/javascript'></script>
<script src='//nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
@nazareno
nazareno / regressao-logistica-no-caret.Rmd
Created April 19, 2016 17:54
Exemplos de classificação com Regressão logística e KNN
---
title: "RL e KNN com caret"
author: "Nazareno Andrade"
date: "18 de abril de 2016"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(caret)
@nazareno
nazareno / investiga_portais.sh
Created November 17, 2017 13:18
Método rápido e sujo pros fornecedores de PT na PB
#!/bin/bash
while IFS=, read -r col1 col2 col3
do
#echo $col1 "---" $col2
sh -x ./pega_pista.sh "$col1" "$col2" || true
done < lista-portais.csv
@nazareno
nazareno / .block
Created December 15, 2017 19:38
Streamgraph
license: gpl-3.0
@nazareno
nazareno / .block
Created December 17, 2017 14:46
Streamgraph
license: gpl-3.0