Skip to content

Instantly share code, notes, and snippets.

View lucassmacedo's full-sized avatar
🎯
Focusing

Lucas Macedo lucassmacedo

🎯
Focusing
View GitHub Profile
# import geopy
# import pandas
# from geopy.geocoders import Nominatim, GoogleV3
import pymysql.cursors
import folium
import geopandas as gpd
import pandas as pd
import numpy as np
import os
import webbrowser
https://www.ibge.gov.br/geociencias/downloads-geociencias.html
http://monografias.poli.ufrj.br/monografias/monopoli10026310.pdf
ftp://geoftp.ibge.gov.br/recortes_para_fins_estatisticos/malha_de_setores_censitarios/censo_2010/base_de_faces_de_logradouros/1_Leia_me/
https://medium.com/@brunomelnic/qgis-calc-ibge-baixando-mapa-e-microdados-do-censo-2010-62e637a72365
http://www.cienciaedados.com/
https://oestatistico.com.br/
https://www.r-bloggers.com/
https://datasciencespecialization.github.io/
https://rpubs.com/
@lucassmacedo
lucassmacedo / links.md
Created August 22, 2019 19:35 — forked from rogeriochaves/links.md
Pt-BR Data Science Links Scrapping
@lucassmacedo
lucassmacedo / gist:d966f16d9ea46b2f2bdb8a5919a5083b
Last active August 22, 2019 14:44
Comandos Linux Importantes
# Deleta todos processos de um certo nome
kill $(ps aux | grep 'phpstorm' | awk '{print $2}')
# Backup and Restore Database TAR PGQSL
PGPASSWORD="" pg_dump -h localhost -U postgres -F t database_name > /bkp/postgres/postgres-`hostname`-producao.tar
PGPASSWORD="" pg_restore -U postgres -d database_name /bkp/postgres/postgres-`hostname`-producao.tar
####
# ATENTION:
# Replace all occurences of portal with your project's name
####
# v2 syntax
version: '2'
# Named volumes
volumes:
library(sf)
library(ggplot2)
library("tmap")
library("tmaptools")
library (leaflet)
library (dplyr)
options (scipen =999)
library(DBI)
con <- dbConnect(RMariaDB::MariaDB(), host = "xx", user = "xx",dbname="xx",password = "xx")
@lucassmacedo
lucassmacedo / InstallJetBrain.sh
Created May 30, 2019 11:36
Install or update jetbrains products like PhpStorm, WebStorm, IntelliJ Idea, PyCharm, CLion, ReSharper on Ubuntu and fix problems with non latin hotkeys in gui java application
#!/bin/bash
# installation jetbrains
j_url="https://data.services.jetbrains.com/products/download"
tmp_dir="$HOME/tmp_jb"
install_dir="/opt"
if [ "$(whoami)" != "root" ]
then
echo "Sorry, you are not root."
exit 1
fi
Viagem: http://www.melhoresdestinos.com.br/
https://www.linuxuprising.com/2018/08/gpaste-is-great-clipboard-manager-for.html
https://github.com/KELiON/cerebro