Skip to content

Instantly share code, notes, and snippets.

View akreit's full-sized avatar

AndreasK akreit

  • Stuttgart, Germany
View GitHub Profile
@akreit
akreit / TypeClassDemo
Created May 4, 2025 16:44
a short demo on how Scala type class work
/**
* Type classes are useful to:
* * enhance capabilities
* * add type constraints
*
* @see https://www.youtube.com/watch?v=bupBZKJT0EA
*/
object TypeClassDemo {
trait Summable[T] {
@akreit
akreit / s3conn_test.py
Created June 22, 2023 13:14
Simple connection test from python via boto3 library to a S3 bucket. Pre-requiste: aws creds configured via aws cli
"""
test interaction with S3 through boto3 libraray in python
"""
from pathlib import Path
import logging
import boto3
from botocore.exceptions import ClientError
import os