Skip to content

Instantly share code, notes, and snippets.

@tfinney9
tfinney9 / Red_Lion_Digital_Input_PAX_Control.py
Created December 3, 2021 21:51
How to talk to a Red Lion PAXI digital counter thing with python!
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 19 09:45:43 2021
@author: tfinney
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@tfinney9
tfinney9 / build_mm.md
Last active December 6, 2022 12:47
Building micro-manager from source on Ubuntu 20.04

Building micro-manager from source on Ubuntu 20.04

First install a bunch of dependencies

some of these might not be necessary?

sudo apt install openjdk-8-jdk

sudo apt install git-all subversion build-essential autoconf automake libtool libboost-all-dev zlib1g-dev swig ant
@tfinney9
tfinney9 / png_to_tiff.py
Created January 12, 2021 06:19
PNG to CMYK TIFF with PIL
from PIL import Image
import subprocess
import glob
import os
png_path = "svg/png/"
pngs = glob.glob(png_path+'*.png')
@tfinney9
tfinney9 / inkscape_svg_to_png.py
Last active January 12, 2021 06:22
Batch Create SVG from PNG with inkscape
"""
be sure to create a png dir in svg ex:
svg/*.SVG
svg/png/
"""
import subprocess
import glob
import os