Skip to content

Instantly share code, notes, and snippets.

View CarstVaartjes's full-sized avatar
🙃

Carst Vaartjes CarstVaartjes

🙃
View GitHub Profile
@CarstVaartjes
CarstVaartjes / font-size-test.md
Last active April 21, 2026 08:45
FOUN-259 md-to-pdf font sizing PR assets

Font Size Test for Monospace

Context

This is a paragraph of regular body text to establish a baseline. It uses the default Avenir Next font at the configured body size. When inline code appears within this sentence, such as 400 or the string "There was an error parsing the body", the monospace font should blend naturally with surrounding text — not appear noticeably larger.

Multiple scheduled data pipelines across EU and AP production instances failed intermittently with a 400 error and "There was an error parsing the body" returned by a backend API service. Affected pipelines included Combined Trade Contract Accrual generation & output messaging, Trade Promotions Actualize Shipments / Ex-factory, and Process TTR Contract Accruals & Outbound Messaging.

Inline Code Variations

@CarstVaartjes
CarstVaartjes / fb_prophet_chalice.py
Created April 8, 2018 19:24
fb-prophet transformation for aws lambda
# based on https://github.com/ryansb/sklearn-build-lambda
$ mkdir ~/.aws
$ cat >> ~/.aws/config
[default]
aws_access_key_id=YOUR_ACCESS_KEY_HERE
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY
region=YOUR_REGION (such as us-west-2, us-west-1, etc)
@CarstVaartjes
CarstVaartjes / deduplicate_photos.py
Last active August 12, 2017 12:30
Deduplicate photo directories based on the basename + size
# pip install exifread
import os
import shutil
import exifread
def get_date(filename):
try:
with open(filename, 'rb') as fh:
tags = exifread.process_file(fh, stop_tag="Image DateTime")