Skip to content

Instantly share code, notes, and snippets.

View pblocz's full-sized avatar

Pablo Cabeza García pblocz

  • Elastacloud
  • London
View GitHub Profile
'''
There are 2 types of functions normal `def func()` and `async def func()`:
- An asyc function can call async functions as well as normal ones
- A normal function can only call normal functions
'''
#%%
import asyncio
import datetime
VS Code extensions
@pblocz
pblocz / update-owlbear-map.py
Created June 21, 2022 21:15
Update owlbear exported map. Old is the map with the notes, tokens, etc and New is the map with the updated background.
#%%
from dataclasses import InitVar, dataclass, field
import json
from pathlib import Path
from typing import Any, Dict
import jmespath as jm
#%%
old = Path("old.owlbear")