Skip to content

Instantly share code, notes, and snippets.

View jpwiedekopf's full-sized avatar
💻
Coding Furiously

Joshua Wiedekopf jpwiedekopf

💻
Coding Furiously
  • Universität zu Lübeck
  • 05:27 (UTC +02:00)
View GitHub Profile
@jpwiedekopf
jpwiedekopf / Download TermInfo from B2 Bucket
Last active August 28, 2024 16:00
Setup Terminfo for the foot terminal.
wget https://gist.githubusercontent.com/jpwiedekopf/8aed995d6f3e7912f815d0e7546b7f0d/raw/eeca3bba34e60dec54ae57fad42faad76310cd44/setup-terminfo-foot && chmod +x setup-terminfo-foot && ./setup-terminfo-foot && rm -v ./setup-terminfo-foot
@jpwiedekopf
jpwiedekopf / Caddyfile
Last active March 11, 2024 16:28
OAuth2-Proxy für SmICS
{
pki {
ca caddy {
name "SmICS App Local Authority"
root {
cert /caddy_ca/smics-uksh-ca.crt
key /caddy_ca/smics-uksh-ca.key
}
}
}
@jpwiedekopf
jpwiedekopf / cross_stitch.py
Created October 5, 2019 21:48
CrossStitch (from Misra et al 2016, arXiv:1604.03539) in tf.keras (Tensorflow 2)
import tensorflow as tf
class CrossStitch(tf.keras.layers.Layer):
"""Cross-Stitch implementation according to arXiv:1604.03539
Implementation adapted from https://github.com/helloyide/Cross-stitch-Networks-for-Multi-task-Learning"""
def __init__(self, num_tasks, *args, **kwargs):
"""initialize class variables"""