Skip to content

Instantly share code, notes, and snippets.

@nishadhka
nishadhka / kml_io.py
Created January 30, 2021 06:18 — forked from mazzma12/kml_io.py
IO / Read and write KML file with geopandas and fiona driver
import fiona
import geopandas as gpd
# Enable fiona driver
gpd.io.file.fiona.drvsupport.supported_drivers['KML'] = 'rw'
# Read file
df = gpd.read_file(path, driver='KML')
# Write file
@nishadhka
nishadhka / nbgrep
Last active June 5, 2019 18:47 — forked from jbarratt/nbgrep
'nbgrep', search the code of all your ipython notebooks for version 3 and 4
#!/bin/bash
# usage: nbgrep 'pattern'
SEARCHPATH='/home/workingnotesBack'
# 'jq' technique lifted with gratitude
# from https://gist.github.com/mlgill/5c55253a3bc84a96addf
# Break on newlines instead of any whitespace
\documentclass[10pt]{article}
\usepackage{labels}
\usepackage{url}
\newcommand{\brk}{$\cdot$ }
%\LabelGridtrue % Enable this to
\LabelCols=2% Number of columns of labels per page
\LabelRows=6% Number of rows of labels per page
\begin{document}
\numberoflabels=12