Skip to content

Instantly share code, notes, and snippets.

View gustabot42's full-sized avatar

Gustavo Díaz Jaimes gustabot42

View GitHub Profile
@gustabot42
gustabot42 / gdb_read.py
Last active June 23, 2022 18:15
Read ESRI GDB With Python 3 GDAL/OGR
#!python3
# Using python3 anconda
# conda install -c conda-forge gdal
from pathlib import Path
from contextlib import contextmanager
from osgeo import ogr
@contextmanager
@gustabot42
gustabot42 / gdb_cmp.py
Last active August 25, 2017 21:17
Script para comparar gdb
#!python3
# Using python3 anconda
# conda install -c conda-forge gdal
# gustavodiazjaimes@gmail.com
# versión 0.1
#usage:
#
@gustabot42
gustabot42 / event_result.py
Last active June 9, 2024 05:29
Asyncio Event With Result
import asyncio
import collections
from asyncio import Event
from collections.abc import Awaitable
from collections.abc import Callable
from collections.abc import Iterable
from result import Err
from result import Result
from __future__ import annotations
import asyncio
import time
from collections import deque
from dataclasses import dataclass
from dataclasses import field
from typing import ClassVar
from typing import Generic
from typing import TypeVar