Skip to content

Instantly share code, notes, and snippets.

@kevin-deyoungster
kevin-deyoungster / Latex two-column with wide table
Last active November 20, 2022 23:14
Two-column wide table in LaTeX
\documentclass[twocolumn]{article}
\usepackage{lipsum}
\usepackage{adjustbox}
\begin{document}
\lipsum[1-5] % To create a random first page
\begin{table}[ht]
@kevin-deyoungster
kevin-deyoungster / export_selected_features.py
Created July 14, 2020 15:06
QGIS script to export selected features to GeoJSON (separately)
import json
layer = qgis.utils.iface.activeLayer()
for i, elem in enumerate(layer.selectedFeatures()):
attrs = elem.__geo_interface__
filename = attrs["properties"]["DISTRICT"] # change this to whatever you want to be filename