Skip to content

Instantly share code, notes, and snippets.

View ptschandl's full-sized avatar

ptschandl ptschandl

  • Medical University of Vienna
  • Vienna
View GitHub Profile
@ptschandl
ptschandl / tensorboard_events_to_csv.py
Last active January 18, 2024 19:00
Extract all tensorboard events files to pandas dataframe
#!/usr/bin/env python3
'''
This script exctracts training variables from all logs from
tensorflow event files ("event*"), writes them to Pandas
and finally stores in long-format to a CSV-file including
all (readable) runs of the logging directory.
The magic "5" infers there are only the following v.tags:
[lr, loss, acc, val_loss, val_acc]
@ptschandl
ptschandl / list_recent_pubmed.html
Created July 25, 2020 15:25
List recent PubMed Entries on a website without server code, implemented with vanilla JS.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="keywords" content="HTML5, JavaScript, PubMed, API">
<meta name="description" content="List recent PubMed Entries with vanilla JS.">
<title>Recent PubMed Entries</title>
</head>
<body>
@ptschandl
ptschandl / ubuntu_repair_pixman.sh
Created August 3, 2021 09:48
Manual pixman patching on Ubuntu
# Preparation:
# 1. ensure a deb-src source is uncommented
# sudo nano /etc/apt/sources.list
if grep -q ^deb-src /etc/apt/sources.list*; then
echo "deb-src found. proceeding..."
else
echo "Ensure a deb-src is available in your sources.list"
exit 1
fi