Hide
Stay up to dateembedded code automagically updates, each snippet and article has a feed Join Siafoo Now or Learn More
Browse
Showing 1 - 6 of 6 Showing 1 - 6 of 6
More of a wiki page than an article, containing notes, tips and guidelines for writing OpenGL applications with PyOpenGL.
Test a sequence of bogosort functions on a series of scrambled linear arrays of ascending maximum size. Repeat the tests a given number of times and return a 3-d array of timing information....
A NumPy rewrite of JD Marble's 2D Improved Perlin Noise Python snippet. This version is roughly 3 to 10 times faster than the pure Python version above but it does require NumPy....
A NumPy-based implementation of the ever-hilarious Bogosort algorithm. Tries (hopelessly) to optimize the algorithm by taking advantage of lazy iterators, NumPy C-based shuffling, and minimizing...
A collection of various NumPy tips and trick that I always forget
A simple function that counts how many leading spaces are found in each entry of a list of strings. Also returns the whitespace-stripped strings and their lengths as lists.
Showing 1 - 6 of 6 Showing 1 - 6 of 6