Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import sys
import re
import csv
import collections
import xml.etree.ElementTree
def natural_sort(l):
"""
@pwuertz
pwuertz / kicad_picknplace_assistant.py
Last active November 27, 2023 07:04
KiCad PCB pick and place assistant
Moved to:
https://github.com/pwuertz/kicad_picknplace_assistant
@pwuertz
pwuertz / PyQt5_OpenGl_TextureFromNumpy.py
Created October 27, 2014 09:44
PyQt5 Example: Create OpenGL texture from numpy array via mapped pixel buffer
from OpenGL import GL
from PyQt5 import QtWidgets, QtCore, QtGui, QtOpenGL
from OpenGL.GL.ARB.texture_rg import GL_R32F
import numpy as np
import ctypes
import time
w, h = 400, 400
class TestWidget(QtOpenGL.QGLWidget):
@pwuertz
pwuertz / edit_this_with_inkscape.svg
Created August 14, 2012 17:27
matplotlib svg with horizontally anchored text elements
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.