Skip to content

Instantly share code, notes, and snippets.

Avatar

deeplook

View GitHub Profile
@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.
@deeplook
deeplook / covid19_confirmed.py
Created Mar 27, 2020
Scrape from the ESRI COVID-19 dashboard the total worldwide number of infections.
View covid19_confirmed.py
#!/usr/bin/env python
"""
Scrape from the ESRI COVID-19 dashboard the total worldwide number of infections.
This needs:
- Firefox
- conda install -c conda-forge geckodriver
- pip install selenium
@deeplook
deeplook / custom_svg_badges.ipynb
Last active Mar 26, 2020
Create custom SVG badges with shields.io
View custom_svg_badges.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.