Skip to content

Instantly share code, notes, and snippets.

Avatar

deeplook

View GitHub Profile
@deeplook
deeplook / app.py
Created Oct 14, 2022
Try serving geopandas/matplotlib content with Flask.
View app.py
"""
Try serving geopandas/matplotlib content with Flask.
Run with:
flask --app app run
"""
from flask import Flask, Response
@deeplook
deeplook / aws_translate.py
Created Mar 8, 2022
Snippet for using AWS Translate online service.
View aws_translate.py
"""
Snippet for using AWS Translate online service.
See https://aws.amazon.com/translate/ for more information.
"""
import os
import boto3 # pip install boto3
@deeplook
deeplook / fit_bounds.ipynb
Created Dec 9, 2021
Testing ipyleaflt map.fit_bounds(), setting zoom level too low
View fit_bounds.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplook
deeplook / st_svg2pdf_app.py
Created Jan 17, 2021
A minimal streamlit app for an svg2pdf converter
View st_svg2pdf_app.py
"""
Run with:
$ streamlit run st_svg2pdf_app.py
"""
import base64
import os
import subprocess
import tempfile
@deeplook
deeplook / series.ipynb
Last active Jan 16, 2021
This is a generator which creates sequences of integers as often presented in so-called *IQ tests* (or CCAT, Criteria Cognitive Aptitude Test) where people are asked to tell the next element after a given sequence of numbers.
View series.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplook
deeplook / fetch_springer_ebooks.py
Created Apr 29, 2020
Fetch free Springer ebooks.
View fetch_springer_ebooks.py
#!/usr/bin/env python3
"""
Download free Springer ebooks.
Examples:
python fetch_springer_ebooks python
python fetch_springer_ebooks --dest my/ebooks math
python fetch_springer_ebooks
@deeplook
deeplook / covid19_travel_restrictions.ipynb
Created Apr 19, 2020
COVID-19 travel restictions example remake im 10 lines of code.
View covid19_travel_restrictions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplook
deeplook / covidohedron.ipynb
Last active Apr 3, 2020
A sperical view to the COVID-19 distribution.
View covidohedron.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplook
deeplook / geojson.ipynb
Created Apr 1, 2020
GeoJSON with ipyvolume
View geojson.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deeplook
deeplook / explore_seam.ipynb
Created Mar 31, 2020
Explore seam on textures mapped to spheres
View explore_seam.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.