Skip to content

Instantly share code, notes, and snippets.

View harllos's full-sized avatar

Harllos Arthur harllos

  • @labFGV
  • Rio de Janeiro
View GitHub Profile
<body>
 <div class='viewport-full relative clip'>
 <div class='viewport-twothirds viewport-full-ml relative'>
 <div id='map' class='absolute top left right bottom'></div>
 <div class='absolute top-ml left z1 w-full w300-ml px12 py12'>
 <div class='viewport-third h-auto-ml hmax-full bg-gray-dark round-ml shadow-darken5 scroll-auto'>
 <div class='p24 my12 mx12 scroll-auto color-white'>
 <h3 class='txt-l txt-bold my6 mx6'>Eleitores RJ 2018</h3>
 <h5 class='txt-m txt-bold px12'>Agregar Eleitores:</h5>
 <div class='select-container py12' id="select-container">
<body>
 <div class='viewport-full relative clip'>
 <div class='viewport-twothirds viewport-full-ml relative'>
 <div id='map' class='absolute top left right bottom'></div>
 <div class='absolute top-ml left z1 w-full w300-ml px12 py12'>
 <div class='viewport-third h-auto-ml hmax-full bg-gray-dark round-ml shadow-darken5 scroll-auto'>
 <div class='p24 my12 mx12 scroll-auto color-white'>
 <h3 class='txt-l txt-bold my6 mx6'>Eleitores RJ 2018</h3>
 <h5 class='txt-m txt-bold px12'>Agregar Eleitores:</h5>
 <div class='select-container py12' id="select-container">
<!DOCTYPE html>
<html>
<head>
 <meta charset='utf-8' />
 <title>Eleitores do RJ 2018</title>
 <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
 <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script>
 <script src="https://npmcdn.com/@turf/turf/turf.min.js"></script>
 <script src="https://unpkg.com/supercluster@3.0.2/dist/supercluster.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/1.3.4/chroma.min.js"></script>
@harllos
harllos / index.html
Last active March 15, 2019 13:06
Mapa clusterizado dos eleitores do Estado do RJ.
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Eleitores Aptos no RJ 2018</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script>
<script src="https://npmcdn.com/@turf/turf/turf.min.js"></script>
<script src="https://unpkg.com/supercluster@3.0.2/dist/supercluster.min.js"></script>
@harllos
harllos / locais_2018_mp_clean.geojson
Created February 23, 2019 18:46
Este GeoJSON contém informações básicas sobre todos os locais de votação do RJ das eleições de 2018, incluindo latitude e longitude. Foi extraído do serviço MP in loco, do Ministério Público do Rio de Janeiro.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harllos
harllos / index.html
Last active February 14, 2019 13:18
oriá 2018
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Oriá 2018</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js'></script>
<script src="https://npmcdn.com/@turf/turf/turf.min.js"></script>
<script src="https://unpkg.com/supercluster@3.0.2/dist/supercluster.min.js"></script>
@harllos
harllos / oria2018
Created February 13, 2019 15:25
GeoJSON Oriá 2018
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"":0,"QT_VOTOS":3,"QT_APTOS":491,"QT_COMPARECIMENTO":426,"NM_MUNICIPIO":"PETROLINA","Bairro":"['JOSÉ E MARIA']","Endereço":"RUA PROJETADA, S/N","nome_local":"ESCOLA JOAQUIM ANDRE CAVALCANTI"},"geometry":{"type":"Point","coordinates":[-40.49331056,-9.36918572]}},{"type":"Feature","properties":{"":1,"QT_VOTOS":1,"QT_APTOS":385,"QT_COMPARECIMENTO":321,"NM_MUNICIPIO":"PETROLINA","Bairro":"['JOSÉ E MARIA']","Endereço":"RUA CRUZEIRO DO SUL, S/N","nome_local":"ESCOLA MUNICIPAL PROFESSOR JOSÉ JOAQUIM"},"geometry":{"type":"Point","coordinates":[-40.49460964,-9.36809411]}},{"type":"Feature","properties":{"":2,"QT_VOTOS":1,"QT_APTOS":238,"QT_COMPARECIMENTO":206,"NM_MUNICIPIO":"PETROLINA","Bairro":"['JOSÉ E MARIA']","Endereço":"AVENIDA PROJETADA , S/N","nome_local":"ESCOLA ANTONIO PADILHA"},"geometry":{"type":"Point","coordinates":[-40.49699229,-9.36600195]}},{"type":"Feature","properties":{"":3,"QT_VOTOS":1,"QT_APTOS":341,"QT_COMPARECIMENTO":287,"N
@harllos
harllos / index.html
Created November 12, 2018 22:22
Witzel e Bolsonaro Zonas com Bairros 2018
This file has been truncated, but you can view the full file.
<html><head><meta charset="utf-8" /></head><body><script type="text/javascript">/**
* plotly.js v1.33.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Plotly=t()}}(function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return i(r||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){"use strict";var n=t("../src/lib"),i={"X,X div":"font-family:'Open Sans', verdan
@harllos
harllos / index.html
Created November 12, 2018 22:13
Witzel e Bolsonaro 2018 Com Endereço
This file has been truncated, but you can view the full file.
<html><head><meta charset="utf-8" /></head><body><script type="text/javascript">/**
* plotly.js v1.33.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Plotly=t()}}(function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return i(r||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){"use strict";var n=t("../src/lib"),i={"X,X div":"font-family:'Open Sans', verdan
@harllos
harllos / index.html
Last active November 12, 2018 20:32
Witzel e Bolsonaro em 2018 - Zonas e Seções
This file has been truncated, but you can view the full file.
<html><head><meta charset="utf-8" /></head><body><script type="text/javascript">/**
* plotly.js v1.33.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Plotly=t()}}(function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return i(r||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){"use strict";var n=t("../src/lib"),i={"X,X div":"font-family:'Open Sans', verdan