Skip to content

Instantly share code, notes, and snippets.

View marcochiesa's full-sized avatar

Marco Chiesa marcochiesa

  • Birmingham, Al
View GitHub Profile
@marcochiesa
marcochiesa / generate_meeting_tags.py
Last active February 1, 2025 07:19
Simple demo to check meetings in a database and generate helpful descriptive tags based on properties of the meetings using a generative language model
## Optionally, use virtual environment for isolation
# python3 -m venv .venv
# source .venv/bin/activate
#
## Install dependencies
# pip install -r requirements.txt
#
## Modify database connection parameters in DB_CONFIG constant
#
## Parse the web page content and output the list, one category per line
@marcochiesa
marcochiesa / App.java
Created June 15, 2018 04:16
Create dicomdir file using dcm4che based on code from dcmdir command line tool
import org.dcm4che3.data.Attributes;
import org.dcm4che3.data.Tag;
import org.dcm4che3.data.UID;
import org.dcm4che3.data.VR;
import org.dcm4che3.io.DicomEncodingOptions;
import org.dcm4che3.io.DicomInputStream;
import org.dcm4che3.media.DicomDirReader;
import org.dcm4che3.media.DicomDirWriter;
import org.dcm4che3.media.RecordFactory;
import org.dcm4che3.media.RecordType;