Skip to content

Instantly share code, notes, and snippets.

@gheorgheiuga
gheorgheiuga / photo_plasticity.py
Created October 9, 2025 20:30
Visual demo of selective plasticity in mlx
# photo_plasticity.py
# Visual demo of selective plasticity (Pop Rank concept) on images using MLX + Pillow + NumPy
import argparse
import numpy as np
from PIL import Image
import mlx.core as mx
def pad32_hw(X):
@gheorgheiuga
gheorgheiuga / datescript.zsh
Created February 6, 2024 08:26
zsh script to fix exif creation date to match modified date
#!/bin/zsh
# Check for the correct number of arguments
if [ "$#" -ne 1 ]; then
echo "Usage: $0 directory"
exit 1
fi
# The directory to be processed
search_dir=$1