Skip to content

Instantly share code, notes, and snippets.

View pedro-valentim's full-sized avatar

Pedro Valentim Silva Leite pedro-valentim

  • São José dos Campos, SP - Brasil
View GitHub Profile
@pedro-valentim
pedro-valentim / data.enhanced-nominatim.sample.json
Created February 1, 2024 16:20
arvores.sjc.sp.gov.br SAMPLE DATA
[{"info": {"common_name": ["Sab\u00e3o-de-soldado", "Sapon\u00e1ria", "Saponia"], "cientific_name": ["Sapindus saponaria"], "dap": "33 cm", "height": "12 m", "collected_at": "2022-07-10", "reports": [{"href": "https://arvores.sjc.sp.gov.br/Arvore/DownloadLaudo/138362", "label": "Laudo N\u00ba 2989/2022"}]}, "photos": [{"src": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/138352", "alt": "16574741023024947299876677984233.jpg"}, {"src": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/138351", "alt": "16574740882495849498221648162390.jpg"}, {"src": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/138355", "alt": "16574742055921799455302851036092.jpg"}, {"src": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/138350", "alt": "16574740494353454876759103759398.jpg"}], "id": 27611, "location": {"lat": -23.217338, "lon": -45.88857, "address": {"suburb": "Floradas de S\u00e3o Jos\u00e9", "city_district": "S\u00e3o Jos\u00e9 dos Campos", "city": "S\u00e3o Jos\u00e9 dos Campos", "municipality": "Regi\u00e3o Imed
@pedro-valentim
pedro-valentim / saopaulo_subprefeituras_poligonos.geojson
Last active December 21, 2022 21:28
GEOJSON com os polígonos de cada subprefeitura da cidade de São Paulo, SP (EPSG:4326)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pedro-valentim
pedro-valentim / saopaulo_distritos_poligonos.geojson
Last active December 21, 2022 21:29
GEOJSON com os polígonos de cada distrito da cidade de São Paulo, SP (EPSG:4326)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[{"id":1,"cidade":"Acrelândia","uf_sigla":"AC"},{"id":2,"cidade":"Assis Brasil","uf_sigla":"AC"},{"id":3,"cidade":"Brasiléia","uf_sigla":"AC"},{"id":4,"cidade":"Bujari","uf_sigla":"AC"},{"id":5,"cidade":"Capixaba","uf_sigla":"AC"},{"id":6,"cidade":"Cruzeiro do Sul","uf_sigla":"AC"},{"id":7,"cidade":"Epitaciolândia","uf_sigla":"AC"},{"id":8,"cidade":"Feijó","uf_sigla":"AC"},{"id":9,"cidade":"Jordão","uf_sigla":"AC"},{"id":10,"cidade":"Mâncio Lima","uf_sigla":"AC"},{"id":11,"cidade":"Manoel Urbano","uf_sigla":"AC"},{"id":12,"cidade":"Marechal Thaumaturgo","uf_sigla":"AC"},{"id":13,"cidade":"Plácido de Castro","uf_sigla":"AC"},{"id":14,"cidade":"Porto Acre","uf_sigla":"AC"},{"id":15,"cidade":"Porto Walter","uf_sigla":"AC"},{"id":16,"cidade":"Rio Branco","uf_sigla":"AC"},{"id":17,"cidade":"Rodrigues Alves","uf_sigla":"AC"},{"id":18,"cidade":"Santa Rosa do Purus","uf_sigla":"AC"},{"id":19,"cidade":"Sena Madureira","uf_sigla":"AC"},{"id":20,"cidade":"Senador Guiomard","uf_sigla":"AC"},{"id":21,"cidade":"Tarauacá","
@pedro-valentim
pedro-valentim / brasil-ufs.geojson
Last active January 26, 2021 16:07
Brasil - UFs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pedro-valentim
pedro-valentim / data.json
Last active November 8, 2020 20:24
Árvores de SJC (https://arvores.sjc.sp.gov.br) - 1000 registros
[
{"id": "6", "commonly_known": ["Figueira", "Ficus benjamim", "Ficus"], "scientific_name": ["Ficus benjamina"], "dbh_unit": "cm", "dbh": 101.0, "height_unit": "m", "height": 18.0, "collection_date": "2020-06-01", "geopoint": [-23.188676, -45.873585], "images": [{"filename": "IMG_7502.JPG", "url": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/224"}], "report": null},
{"id": "7", "commonly_known": ["Dracena"], "scientific_name": ["Dracaena arborea"], "dbh_unit": "cm", "dbh": 20.0, "height_unit": "m", "height": 9.0, "collection_date": "2020-06-01", "geopoint": [-23.188582, -45.873343], "images": [{"filename": "IMG_7503.JPG", "url": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/225"}, {"filename": "IMG_7504.JPG", "url": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/226"}, {"filename": "IMG_7505.JPG", "url": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/227"}, {"filename": "IMG_7513.JPG", "url": "https://arvores.sjc.sp.gov.br/Arvore/DownloadImg/228"}], "report": null},
{"id": "2", "commonly_known"
span:nth-last-child(-n+7) {
display: none;
}
figure audio {
width: 100%;
margin: 1rem auto;
}
How do you comfort a JavaScript bug? You console it.
Why did the child component have such great self-esteem? Because its parent kept giving it `props`!
Why do C# and Java developers keep breaking their keyboards Because they use a strongly typed language
Why did the functional component feel lost? Because it didn't know what `state` it was in!
Why was the JavaScript developer sad? Because he didn't Node how to Express himself!
Why did the developer go broke? Because he used up all his cache!
Why did the React Higher Order Component give up? Because it sur-rendered to the prop-aganda!
Why did the react class component feel relieved? Because it was now off the hook.
Why did the react developer have an addiction? Because they were completely hooked on the hooks proposal.
What does a React proposal mean? It means to swallow something hook, line and sinker.
@pedro-valentim
pedro-valentim / README
Last active May 25, 2020 00:50 — forked from diverted247/README
Export slides from Google Slides as SVG - Console Script (Chrome tested)
To export SVG from Google Slides.
1. Open Slide deck.
2. View -> 100%
3. Paste the export.js in the console.
4. Make sure to allow multiple downloads.
5. Respond the prompt with anything and click Ok. All SVG should be in Downloads folder.
Cheers,