Skip to content

Instantly share code, notes, and snippets.

View giovanisleite's full-sized avatar
🏠
Working from home

Giovani Sousa giovanisleite

🏠
Working from home
View GitHub Profile
@giovanisleite
giovanisleite / cidades.md
Last active May 16, 2018 23:50
cidades.md

× Done - In progress

# Cidade Crawler Parser
1 São Paulo
2 Rio de Janeiro -
3 Brasília
4 Salvador
import requests
import shutil
BASE_FILE_URLS = [
'https://www.wsl.ch/lud/chelsa/data/timeseries20c/prec/CHELSAcruts_prec_{}_{}_V.1.0.tif',
'https://www.wsl.ch/lud/chelsa/data/timeseries20c/tmax/CHELSAcruts_tmax_{}_{}_V.1.0.tif',
'https://www.wsl.ch/lud/chelsa/data/timeseries20c/tmin/CHELSAcruts_tmin_{}_{}_V.1.0.tif',
]
@giovanisleite
giovanisleite / stack.js
Created July 25, 2021 20:48
Data Structure: Stack
class Stack {
constructor() {
this.stack = [];
}
get length() {
return this.stack.length;
}
push(el) {
@giovanisleite
giovanisleite / queue.js
Created July 25, 2021 20:52
Data Structure: Queue
class Queue {
constructor() {
this.queue = []
}
get length() {
return this.queue.length;
}
enqueue(el) {