Skip to content

Instantly share code, notes, and snippets.

View habi's full-sized avatar

David Haberthür habi

View GitHub Profile
@habi
habi / fever.opml
Last active March 21, 2024 21:35
Am OPML file
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<!-- OPML generated by Fever -->
<head><title>Fever</title></head>
<body>
<outline type="rss" text="andrewjanowczyk.com/feed" title="andrewjanowczyk.com/feed" xmlUrl="http://www.andrewjanowczyk.com/feed" htmlUrl=""/>
<outline type="rss" text="biorxiv.org/alerts?destination=alerts/search/add&amp;search_query=haberth%25C3%25BCr" title="biorxiv.org/alerts?destination=alerts/search/add&amp;search_query=haberth%25C3%25BCr" xmlUrl="https://www.biorxiv.org/alerts?destination=alerts/search/add&amp;search_query=haberth%25C3%25BCr" htmlUrl=""/>
<outline type="rss" text="Arq Backup Blog" title="Arq Backup Blog" xmlUrl="https://www.arqbackup.com/blog/feed" htmlUrl="https://www.arqbackup.com/blog"/>
<outline type="rss" text="Beautiful Public Data" title="Beautiful Public Data" xmlUrl="https://www.beautifulpublicdata.com/rss/" htmlUrl="https://www.beautifulpublicdata.com/"/>
<outline type="rss" text="Big Wide World" title="Big Wide World" xmlUrl="http://www.b
@habi
habi / laengstepisten.geojson
Created February 23, 2024 21:31
./osm-lump-ways -i switzerland-latest.osm.pbf -f piste:type=downhill -f area≠yes -o laengstepisten.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@habi
habi / proof.md
Created January 17, 2024 13:13
Keyoxide proof

aspe:keyoxide.org:SANRZ2DWCGCATM22OQ26RWURBI

@habi
habi / 1944_OSS_Simple_Sabotage_Field_Manual.md
Last active October 16, 2023 03:28 — forked from kennwhite/1944_OSS_Simple_Sabotage_Field_Manual.md
1944 OSS Simple Sabotage Field Manual
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@habi
habi / Imread.ipynb
Last active June 22, 2021 08:35
Issues with different `imreads`
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sed -i 's/Haberthuer2010/doi:10.1107\/S0909049510019618/g' *.md
sed -i 's/Haberthur2013/doi:10.1152\/japplphysiol.00642.2013/g' *.md
sed -i 's/Haberth_r2013/doi:10.1152\/japplphysiol.00642.2013/g' *.md
sed -i 's/Haberth_r_2013/doi:10.1152\/japplphysiol.00642.2013/g' *.md
sed -i 's/haberthr/doi:10.5281\/zenodo.3768407/g' *.md
sed -i 's/Barr__2014/doi:10.14814\/phy2.12063/g' *.md
sed -i 's/Barr__2016/doi:10.1152\/ajplung.00325.2016/g' *.md
sed -i 's/Tschanz_2014/doi:10.1152\/japplphysiol.01355.2013/g' *.md
sed -i 's/TSCHANZ_2011/doi:10.1111\/j.1365-2818.2010.03481.x/g' *.md
sed -i 's/Schittny_2008/doi:10.1152\/ajplung.00296.2007/g' *.md
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@habi
habi / cropper.py
Created November 24, 2020 12:12
Crop a (DASK) array of (tomographic) data to the biggest blob present in it.
def cropper(image,
despeckle=True,
verbose=False,
threshold=50):
'''Crop array to biggest item in it'''
dimensions = len(image.shape)
if verbose:
print('Cropping %s-dimensional image' % dimensions)
# Threshold
thresholded = image > threshold