Skip to content

Instantly share code, notes, and snippets.

@benjamindahl
benjamindahl / stablediffusionimagecatalog.py
Created December 5, 2022 14:04
Python code that creates an image catalog with exactly one reference image for each artist from a list of artists supported by stable diffusion
# Import necessary modules
import csv
from PIL import Image
from bs4 import BeautifulSoup
import requests
from urllib.parse import urljoin
import io
# Open the CSV file and read the list of artists
with open('artists.csv', 'r') as csv_file:
@benjamindahl
benjamindahl / ifcopenshell_build.log
Last active March 14, 2022 09:06
Commandline output of ifcopenshell build
benny@mbp1421 IfcOpenShell % cmake -S cmake -B build -D PYTHON_EXECUTABLE=~/.pyenv/versions/3.9.7/bin/python3.9 -D PYTHON_INCLUDE_DIR=~/.pyenv/versions/3.9.7/include/python3.9/ -D PYTHON_LIBRARY=~/.pyenv/versions/3.9.7/lib/libpython3.9.dylib -D OCC_LIBRARY_DIR="/opt/homebrew/lib/" -D OCC_INCLUDE_DIR=/opt/homebrew/include/opencascade/ -D COLLADA_SUPPORT=0 -D CGAL_INCLUDE_DIR=/opt/homebrew/include/ -D GMP_LIBRARY_DIR=/opt/homebrew/lib/ -D MPFR_LIBRARY_DIR=/opt/homebrew/lib/ -D HDF5_SUPPORT=Off
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done

Keybase proof

I hereby claim:

  • I am benjamindahl on github.
  • I am benjamindahl (https://keybase.io/benjamindahl) on keybase.
  • I have a public key whose fingerprint is 901D 9984 2006 E00F 060E 6E6C 5801 FE95 22DC B95C

To claim this, I am signing this object: