Skip to content

Instantly share code, notes, and snippets.

View pgebert's full-sized avatar
🎯
Currently working on timeseries forecasting / computer vision projects

Patrick Gebert pgebert

🎯
Currently working on timeseries forecasting / computer vision projects
View GitHub Profile
@pgebert
pgebert / decode_jwt.py
Created December 6, 2021 21:22
Decryption of an example jwt token with python.
import base64
import json
/**
* Created by pgebert on 06/12/21.
*
* Decryption of an example jwt token with python.
*/
token = 'eyJuYW1lIjogInVzZXJfbmFtZSJ9'
@pgebert
pgebert / KotlinDataClassToMap.kts
Last active August 3, 2023 07:43
Transforms a kotlin data class into a map. This especially is useful if you store the rows of a table in data class instances and want to get the values while iterating over them.
@file:DependsOn("org.jetbrains.kotlin:kotlin-reflect:1.6.0")
import kotlin.reflect.full.memberProperties
/**
* Created by pgebert on 06/12/21.
*
* Transforms a kotlin data class into a map. This is useful if you store the rows of a table
* in data class instances and want to get the values iterating over them.
*/