Skip to content

Instantly share code, notes, and snippets.

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
@monga
monga / myterminal.sh
Last active March 14, 2020 10:13
Script to toggle a graphical window with my main textual terminal windows (managed by tmux)
#!/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

Keybase proof

I hereby claim:

  • I am monga on github.
  • I am emme (https://keybase.io/emme) on keybase.
  • I have a public key ASDs9NdgjcdMtSHWd3eS-ioaW-9gjwklzo-lZyHGbIi7Fwo

To claim this, I am signing this object:

Keybase proof

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: