Sélection de codes Python du site ActiveState
Site :
http://code.activestate.com/recipes/langs/python/
Draw Text To Image
Mandelbrot Fractal image output to ppm file
Find Duplicate Files
Teach your computer a few tricks
(Artificial Neural Network)
Game of Life - Python 3.4 & tkinter
2D Fluid Simulation using FHP LGCA
(Lattice Gas Cellular Automata)
Simple Linear Regression with Pure Python
All in one Area Calculator
(tkinter & Python 3)
Rotatable Tetrahedron
Analog clock
Setting up a listbox filter in Tkinter(python 2.7)
Gimp Paperwhite Scriptfu
(GIMP plugin)
Python text-to-speech with pyttsx
Hierarchical Clustering Heatmap Python
Create simple PDF text calendars with xtopdf
Indexing text files with Python
Using pngcanvas, a pure Python PNG library
Levenshtein_distance
Python Game of Life
(avec pygame)
Sending Email From A Python Program
Numerical Inversion of the Laplace Transform with mpmath
Convert Microsoft Word files to PDF with DOCXtoPDF
Bell permutations using Even's nonrecursive algorithm
Recursive Multimedia (audio, video) M3U Playlist Generator
Circle Inversion Fractals
Analog clock with Qt4
Shortest Common Supersequence algorithms
Sort images from different sources by picture taken date
(Exif)
Hofstadter Butterfly Fractal
Stopwatch with laps in Tkinter
(indiquer Tkinter au lieu de tkinter en python 2)
Mandelbrot Fractal using Tkinter
Dynamical Billiards Simulation
Conway's Game of Life In Python
Gravner-Griffeath Snowflake Simulation
Geometry class for Tkinter
Analog stopclock
Archimedes Method for PI (arbitrary precision)
(en python 3)
Sending Email in Python
Logistic Map Fractal
True-color Mandelbrot Fractal
Simple Morse Code Translator in Python
(dictionnaire)
Generate Password and Bit Rank
Snowflake Simulation Using Reiter Cellular Automata
Hash collision probability / Birthday problem
A point-in-polygon program (S.W. Sloan algorithm)
Plotting maps with Polar Stereographic projection focused in a region with Basemap
cf. aussi
ceci
Random Multi-Maze Generator
(labyrinthes)
Random Maze Generator
Platform Independent White Noise Generator...
python string concatenation
(tests efficiency)
Typing skills meter
(python 3)
unicode Command line histograms
Use PIL to make a "contact sheet" montage of images
Test various OpenCV feature detectors in Python
Spoken Word to Number
An Entry with autocompletion for the Tkinter GUI
Sudoku Game Generator
Artificial Neuroglial Network (ANGN)
Progress bar class
EXIF-date-based JPEG files rename using PIL
pygmail (can send mail)
Mandelbulb Fractal
Directory & File Counter
Random Sound FX Using WAV File
Colorize Python -- Sourcecode Syntax Highlighting
How to read millions of hexadecimal numbers into a numpy array quickly
Click counter for Windows
Sound Generator Using WAV file
Position The Cursor Almost Anywhere Inside Standard Text Mode Python Terminal
A simple Matrix class
Pi Circle
(Computes Pi to many decimal places and prints the digits in a circle)
Simple linear regression
Draw SVG Images In Python
Round number to specified number of significant digits
Learning to calculate (mental arithmetic)
Colo(u)rs Inside Text Mode Python...
Python+OpenCV: Camera frame grab and sobel display
Simple directory tree view generator
Saving a Tkinter canvas image or animation using PIL
A Simple Webcrawler
Dropbox file uploader via web interface using Python with urllib2 and mechanize
Password Card Generator
mouse click to crop many large photos quickly
(Python, PIL, pygame)
Dragon Fractal Using Iteration Method
Temperature Calculator
Yet Another Python Generator...
(audio)
An extensible Conway's Game of Life
Bezier Curve using De Casteljau algorithm
A DEMO Frequency Counter With A Difference - Text Mode Python
primeList
Left-handed password generator
Python Multidimensional List Searcher
(avec solution alternative très compacte)
ProgressBar class
AcDc using sound card and some electronics
Fast min/max function
Benchmark code with the with statement
Permutation and combination using recursive generator
Convert Image Format
Equally-spaced floats part 2
get all possible combinations of characters given a string
Josephus problem
Frequency Analyser
Self-contained TWL06 Dictionary Module
Synchronized Chaos using Lorenz Attractor
Lorenz Attractor
Using vlc.py to record an mp3 and save a cue file
Running 2Balls in Vpython by Flip-Flopping
Random fractal curve
Speeding up computations using a lookup table part I
Simple LF Audio Oscilloscope Using Standard Text Mode Python
Generator of combinations without replacement for a sequence using dynamic programming
Secure Password Generator
Send an HTML email with embedded image and plain text alternate
ActiveState recipe statistics
SimpleTron3x.py "Game" To DEMO XY Drawing Using The Keyboard In Standard Text Mode Python
2D slice of 4D Mandelbrot Fractal and Map it in 3D
Chess Notation Player
Simple Sudoku
4D Mandelbrot Fractal
Midpoint of two GPS points
Simple numeric database
Partition a sequence
Spring-Mass System Simulation
Multi-threaded Mandelbrot Fractal
class matrix
Four Bit Vertical Coloured Analogue Bar Graph Generator DEMO...
Bitmap Maker
Destroying Directories
http://code.activestate.com/recipes/577665-partitioning-a-sequence/
Unit Conversions Using Decimal
, conversions d'unités (+ utilisation def doctest)
ODE Solver using Euler Method
PythonTimer
: texte
Simple LF Audio Oscilloscope Using Standard Python
Mandelbrot trajectories
Comparing two images
converting numbers to their alphabetical style
Simple White Noise Generator Using Standard Python In Linux
GPS distance and bearing between two GPS points
Simple 1KHz Audio Function Generator Using Standard Python In Linux...
, tAc generation (frequency, form …)
Conversion of PIL Image and numpy array
Record and Playbac using standard Python
(Linux)
Calculate Pi using Monte Carlo Simulations in Python (Vectorized)
Pendulum Simulation with Turtle
Pascal's triangle
Python Binary Search Tree
Wiki Recent Changes Checker
Hanoi Towers solver wxPython
Decimal to Binary Conversion
http://code.activestate.com/recipes/577487-chaotic-function-analysis-graph/
Shannon Entropy Calculation
Polynomial Interpolation using Lagrange Polynomial
Dynamical Billiards Simulation
Eight queen problem
Convert CSV to XML