Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js
Forked from john-guerra's block
As in Krist example:
- Each borough is color-coded by the length of its name in English.
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js
Forked from john-guerra's block
As in Krist example:
## Importing Necessary Modules | |
import requests # to get image from the web | |
import shutil # to save it locally | |
## Set up the image URL and filename | |
image_url = "https://cdn.pixabay.com/photo/2020/02/06/09/39/summer-4823612_960_720.jpg" | |
filename = image_url.split("/")[-1] | |
# Open the url image, set stream to True, this will return the stream content. | |
r = requests.get(image_url, stream = True) |
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title>Data story with flourish</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="description" content="how-to-make-a-story"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> |
library(gt) | |
library(gtExtras) | |
library(tidyverse) | |
df_tt <- tidytuesdayR::tt_load(2021, "39") | |
min_data <- df_tt$nominees %>% | |
distinct(page, page_id, .keep_all = TRUE) | |
stream_data <- min_data %>% |
# Pacotes ----------------------------------------------------------------- | |
library(tidyverse) | |
library(jsonlite) | |
# Configurar -------------------------------------------------------------- | |
#-- codigo pleito |
library(stringr) | |
library(purrr) | |
library(readr) | |
file_txt<- "<Nome_do_arquivo_baixado.txt>" | |
conversa_txt <- readLines(file(file_txt , encoding = "UTF8")) | |
id_linhas_sujas<- |
library(jsonlite) | |
# load the httr package | |
library(httr) | |
#Você deve ter uma chave gerada de API. Para isso você precisa criar um usuário na página dados.gov.br usando o gov.br | |
my_key<- "<sua_chave_aqui>" | |
# Define the API endpoint and headers | |
url <- "https://dados.gov.br/dados/api/publico/conjuntos-dados" |