Download Programming methods & algorithms scripts

336 336

'affinity' provides a simple api for setting the processor affinity by wrapping the specific underlying function calls of each platform.

Python | Sep 15, 2010 | downloaded 1 script(s) | N/A

It implements a Unicode subclass that supports HTML strings.

Python | Sep 11, 2010 | downloaded 4 script(s) | N/A

The syntax is a subset of Python.

Python | Sep 11, 2010 | downloaded 8 script(s) | N/A

It allows developers to use R in Python through PIPE.

Python | Sep 11, 2010 | downloaded 4 script(s) | N/A

Two styles of acquisition are supported: explicit and implicit acquisition.

Python | Sep 11, 2010 | downloaded 3 script(s) | N/A

jsbridge is part of MozMill Mozilla automation tools package.

Python | Sep 11, 2010 | downloaded 5 script(s) | N/A

It supports flags and named capture groups.

Python | Sep 11, 2010 | downloaded 1 script(s) | N/A

All errors from the R language are converted to Python exceptions.

Python | Sep 11, 2010 | downloaded 6 script(s) | N/A

These two enumerators use a linklist to imitate permutations and a binary tree to imitate combination. Thus the program can spit out the result one by one.

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

Random Password Generation script is a code snippet to generate an 8 character alphanumeric password.

Python | Sep 12, 2010 | downloaded 4 script(s) | N/A

This script is a pure Pythonic implementation of a set class. The syntax and methods implemented are, for the most part, borrowed from PEP 218.

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

This script generates a Windows command file that executes a Python program.

Python | Sep 12, 2010 | downloaded 5 script(s) | N/A

This module provides a simple criteria-based priority queue with "priority cascading".

Python | Sep 12, 2010 | downloaded 10 script(s) | N/A

This script can be good to avoid some limitations of multiple inheritance, when in need to expand functionalities of superclasses in the hierarchy or controlling the classes cooperation.

Python | Sep 12, 2010 | downloaded 2 script(s) | N/A

In some applications, it's advantageous to be able to define a circular data structure (a structure in which the last element is a pointer to the first). Python lists make it easy to make such a beast. A list is an ordered sequence of ...

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

The Python debugger has not the bash-like tab completion that you can add to the interpreter. Fortunately pdb's interactive prompt is an instance of Cmd, so you can write our own completion function.

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

This function generates XML for any Python object through recursive functions. It is easy to add specific handlers for your own object types for more complex output options.

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

This script parses the online documentation for compiler.ast and generate code for a skeletal ASTVisitor class that includes stubs for all of the various visitNODE functions that you might need in a visitor, along with comments in each ...

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

This script implements the instance method for performing currying. Instance method provides a way to perform currying such that the curried function runs much faster than one produced by closure.
Currying is an important technique to ...

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

This script includes a collection of small utility functions for iterators (all functions can also be used with normal sequences).
Among other things, the module provides generator ("lazy") versions of the built-in sequence-manipulation ...

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

This script demonstrates a C -like template based inheritance implementation in Python.

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

This script presents a design pattern that is highly reusable. Simple handlers implement one specific task from a complex set of tasks to be performed on an object.
Such handlers can then be layered in a stack, in different combinations, ...

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

This script returns the convex hull (separated into upper and lower chains of vertices) and the diameter (farthest pair of points), given input consisting of a list of 2d points represented as pairs (x,y).
The convex hull algorithm is ...

Python | Sep 12, 2010 | downloaded 2 script(s) | N/A

The usual approach to merging is to loop through both sequences taking the smallest from each until they are both exhausted.
Python's "timsort" function detects order in underlying sequences and will run a C speed merge on the data. So, ...

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

This script represents a way to parse command line from user provided string or try to get the original Argv from Windows OS Platform.

Python | Sep 12, 2010 | downloaded 6 script(s) | N/A

Suppose one reference number on your invoice is "XYZ-001", then let this algorithm figure out that the next one should be "XYZ-002" or that "dsc_010.jpg" should become "dsc_011.jpg" .

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

I allows the developer to make jQuery-like queries on XML documents.

Python | Sep 12, 2010 | downloaded 3 script(s) | N/A

This function makes it easier to use the timeit module from the interactive interpreter.

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

This script is useful when you want to get the items from a sequence (or other iterable) a batch at a time, including a short batch at the end if need be.

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A

Built-in "sum" function, as well as add.reduce functions in Numeric/numarray introduce a large error when summing large arrays of like elements.
This script contains a function that makes sums with error less than 1e-15. It doesn't use ...

Python | Sep 12, 2010 | downloaded 1 script(s) | N/A