Skip to content

Instantly share code, notes, and snippets.

View jothirnadh's full-sized avatar

Jothirnadh Sai Guthula jothirnadh

View GitHub Profile
@jothirnadh
jothirnadh / jupyter_shortcuts.md
Created September 2, 2018 06:09 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command
@maning
maning / gist:11998bb29eb96c4bf38d
Last active March 9, 2021 19:55
geo-oneliners
# Some GEO oneliners that make my life easier.
# Dissolve Shapefiles using OGR from an attribute table
# http://darrencope.com/2015/01/23/dissolve-shapefiles-using-ogr/
ogr2ogr outputfile.shp inputfile.shp \
-dialect sqlite -sql “SELECT dissolvefield,ST_Union(geometry) \
as geometry FROM inputfile GROUP BY dissolvefield”
# Dissolve everything http://gis.stackexchange.com/questions/79850/merge-large-number-of-polygons-using-qgis
ogr2ogr -dialect SQLITE -sql "SELECT ST_Union(geometry) FROM input" output.shp input.shp