Skip to content

Instantly share code, notes, and snippets.

@Hodapp87
Hodapp87 / sound_plots.py
Created March 7, 2015 16:09
Generating waveform & spectrum plots with NumPy & matplotlib
#!/usr/bin/env python3
"""sound_plots.py: Simple example using NumPy & matplotlib to generate some
sound waveforms, plot them with their frequency spectra, and write out WAV
files of them."""
import numpy
import matplotlib.pyplot as plt
import wave
import struct
@Hodapp87
Hodapp87 / vtk_python_mesh.py
Created February 8, 2014 00:49
Simple VTK example in Python to load an STL mesh and display with a manipulator.
#!/bin/env python
"""
Simple VTK example in Python to load an STL mesh and display with a manipulator.
Chris Hodapp, 2014-01-28, (c) 2014
"""
import vtk
def render():
@Hodapp87
Hodapp87 / solx86_init.c
Created May 11, 2023 18:12
X11R6 source code
// Source: https://www.x.org/releases/X11R6/
// xc/programs/Xserver/hw/xfree86/os-support/solx86/solx86_init.c
/* $XConsortium: solx86_init.c,v 1.2 94/10/12 20:50:38 kaleb Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/solx86/solx86_init.c,v 3.0 1994/09/23 10:25:22 dawes Exp $ */
/*
* Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany
* Copyright 1993 by David Wexelblat <dwex@goblin.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its