Instantly share code, notes, and snippets.

View demo_arrowlines.tex
\draw [one to one] (0,0) -- (12,0) node[midway, above] {can't work out the layout} ;
\draw [one to one] (0,2) -- (5,2) node[midway, above] {one to one} ;
\draw [many to many] (7,2) -- (12,2) node[midway, above] {many to many} ;
\draw [many to one] (0,4) -- (5,4) node[midway, above] {many to one} ;
\draw [one to many] (7,4) -- (12,4) node[midway, above] {one to many} ;
\draw [many to oone] (0,6) -- (5,6) node[midway, above] {many to oone} ;
\draw [oone to many] (7,6) -- (12,6) node[midway, above] {oone to many} ;
View simpleWordcloud.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View stamps.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View jupyterkgdemo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View datasette_spatialite_geoquery.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View powercuts.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View geofood_spatialite.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View osmnx-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View spatialite-datasette-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View nb_sqlite_db.py
import os
def nbpathwalk(path):
''' Walk down a directory path looking for ipynb notebook files... '''
for path, _, files in os.walk(path):
if '.ipynb_checkpoints' in path: continue
for f in [i for i in files if i.endswith('.ipynb')]:
yield os.path.join(path, f)
import nbformat