Skip to content

Instantly share code, notes, and snippets.

View aurelienpierre's full-sized avatar
🚣‍♂️
I may be slow to respond.

Aurélien PIERRE aurelienpierre

🚣‍♂️
I may be slow to respond.
View GitHub Profile
@aurelienpierre
aurelienpierre / start Da Vinci Resolve on 4K HiDPI screen with Nvidia Prime Xorg on Linux (Fedora 32)
Last active July 9, 2020 14:54
Solve the DPI scaling issue and start the application on discrete GPU altogether. Works the same with any Qt app needing GPU acceleration without having internal DPI scaling.
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia QT_DEVICE_PIXEL_RATIO=2 QT_AUTO_SCREEN_SCALE_FACTOR=true /opt/resolve/bin/resolve
@aurelienpierre
aurelienpierre / pandas-checks.py
Last active March 16, 2022 10:50
Perform usual types and values checks on columns of a pandas.DataFrame
# Create Dataframe with fake data
df = pd.util.testing.makeMissingDataframe()
df['index1'] = df.index # create a text column by replicating index
df['A'] = 0 # create a zero column
# Helper function
def check_df_sanity(df, verbose=False):
"""Perform usual types and values checks on columns of a pandas.DataFrame"""
for col in df:
#!/usr/bin/env python3
# © Aurélien PIERRE - 2022
# Licensed under the terms of the Do What the Fuck You Want to Public License (WTFPL)
import os
import re
"""
Step 1: gather GUI labels and module names from source code,