Skip to content

Instantly share code, notes, and snippets.

View jnettels's full-sized avatar

Joris Zimmermann jnettels

View GitHub Profile
@jnettels
jnettels / animal_noises_scraper.py
Created February 11, 2024 07:44
Download animal noises sound files and icons to copy onto phoniebox and print RFID stickers
# -*- coding: utf-8 -*-
"""A (german) google search for the words "google tierlaute" yields
a user interace with 57 animal noises. This script uses part of
the html from that search result page to download both the mp3 sound files
and the icon images.
The files are arranged and renamed into folders, which can be copied to
a phoniebox.
Also a DIN A4 paper sheet is created with the animal icons arranged to
fit onto 2.5 cm round RFID chips, when printed onto sticker paper.
@jnettels
jnettels / Sankey_75726bc.html
Last active June 3, 2021 08:18
Holoviews Sankey Tests
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@jnettels
jnettels / export_test.py
Created December 14, 2017 12:12
Bokeh: After the layout has been added to the root, exporting the png of a fig is not possible anymore
# -*- coding: utf-8 -*-
'''
After the layout has been added to the root, exporting the png of a fig is
not possible anymore
With "bokeh serve export_test.py", the console output for me is the following:
doc_layout works
fig works
Layout is added to root
doc_layout works
@jnettels
jnettels / index.html
Last active July 20, 2018 19:26
Python Bokeh: Modified slider widget example to demonstrate scrollable columns
<!DOCTYPE html>
<html lang="en">
<head>
<style>
div.scrollable {
overflow: auto;
}
</style>
<meta charset="utf-8">
{{ bokeh_css }}