Zach Marin

Programming miscellany

Here's a small collection of tips and tricks I find useful.


Signed distance functions are useful for simulating and segmenting images and point clouds.


Prototyping functions for Python ctypes can be tedious. Sometimes I use ctypeslib to unroll library functions for me when I want to write hardware control code.


You can create a Windows desktop shortcut for your Python software and run it in the proper Conda environment with %windir%\system32\cmd.exe "/c" cd C:\path\to\software && C:\path\to\conda\Scripts\activate.bat my_environment_name && python my_main_loop.py