I hereby claim:
- I am monga on github.
- I am emme (https://keybase.io/emme) on keybase.
- I have a public key whose fingerprint is 339A 40FA 6597 E625 71ED 344B 70C9 2F08 E5B4 3793
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Copyright (C) 2020 by Mattia Monga - Distribute freely under GPLv3 | |
| # This script is triggered by a shortcut key (I use F12) | |
| # It toggles a graphical window with my main textual terminal windows (managed by tmux) | |
| # If you switch to a textual console you can still peek at them with | |
| # tmux attach-session -t $MYSESSION | |
| # Just in case you want to debug | |
| # exec 3>/tmp/myterminal-$$.log | |
| # BASH_XTRACEFD=3 |
| from IPython.display import display, HTML, IFrame | |
| import geopandas | |
| world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres')) | |
| from shapely.geometry import Point | |
| def is_land(longitude, latitude, w=world): | |
| """Check if the point (longitude, latitude) is within a country in the world shape GeoDataFrame |
| from dataclasses import dataclass | |
| from random import gauss | |
| import math | |
| type Eur = float | |
| type TimeUnit = int | |
| type PercentPoint = float | |
| class Security: |