Programming Methods & Algorithms scripts - Top 4 Download

Programming Methods & Algorithms script downloads

Splitting up a sequence

This script allows you to split up a sequence in same-size (if possible) parts. ...
Python

SQL like ORDER BY function for lists

This script contains a function that allows you to easily sort a list by multiple columns in ascending and descending order similar in function to the ORDER BY clause in SQL. ...
Python

Squirrel

Squirrel is known to run on Windows, Linux, MacOS X, PSP, GameCube, Wii, Nintendo DS and XBOX.It's inspired by languages like Python,Javascript and expecially Lua. Key features "Squirrel": · Dynamic typing · Delegation · Classes & inheritance · Higher order functions · Generators · Cooperative threads(coroutines) · Tail recursion · ...
Unknown

Stateful Objects use Mix ins to define behaviour

If you want to implement stateful objects, which have a different set of behaviours according to what state they are in, this requirement can be achieved with the use of mix-ins. A mix-in is a class which is dynamically inherited by an object. The methods of the mix-in class are thus ...
Python

Static or Class Methods

This script implements class methods that do not require an object instance. ...
Python

Storage for store information about prefixes

Storage for store information about prefixes script allows you to store information about domains determined by key prefixes. ...
Python

Summary reports using itertools groupby

This script produces a summary of the data, grouped by the given key (default: the first item), and giving totals of the given value (default: the second item). The key and value arguments should be functions which, given a data record, return the relevant value. ...
Python

Symmetric data obfuscation using xor

This script can be conveniently used to obfuscate a string of data using simple xor without using any key. ...
Python

Tabify

This script introduces a function that converts the indentation with spaces to tabs. ...
Python

Tail Call Optimization Decorator

This function decorates a function with tail call optimization. It does this by throwing an exception if it is it's own grandparent, and catching such exceptions to fake the tail call optimization. This function fails if the decorated function recurses in a non-tail contexif the de >/ ...
Python

Terminating a subprocess on Windows

The new subprocess module in Python 2.4 allows access to the handle of any newly created subprocess. You can use this handle to terminate subprocesses using either ctypes or the pywin32 extensions. ...
Python

The Singleton Pattern implemented with Python

This script contains a class that shows how to implement the singleton pattern in Python. A singleton is a class that makes sure only one instance of it is ever created. Typically such classes are used to manage resources that by their very nature can only exist once. ...
Python

The Squirrel programming language

It was designed to be a powerful scripting language for small applications like games, due to its small size, reduced memory bandwidth and little real-time requirements.Squirrlel has been tested with the following compilers:MS Visual C++ 6.0,7.0,7.1 and 8.0 (32 and 64bits)MinGW gcc 3.2 (mingw special 20020817-1)Cygnus gcc 3.2Linux gcc 3.2.3Linux gcc ...

Timeit module wrapper

This script contains a simple, easy to use wrapper function for doing quick tests of your functions using the timeit module.The timeit module provides an easy way of testing the performance of your Python code by running it in many iterations and averaging the timings. However it is not very obvious how ...
Python

Tkinter moving geometry methods

A common way to create new compound widgets is to inherit Frame, create everything you need inside it and pack this base Frame on your application.This script is an alternative to this method, that sets geometry methods and options from a wiget to another. ...
Python

Trace expressions and comments in debug mode

This script acts like a stepping debugger to diagnose and fix your programs. It contains functions for log state and execution flow. ...
Python

Tracking file requests in web server access logs

This script helps you to find out how often and by who a particular file is being requested. It prints the requesting addresses, hostnames, access times, and hit counts. ...
Python

Transposing a List of Lists

This script allows you to transpose a list of lists of different lengths. ...
Python

Treat the Win32 Registry like a Python dict

This class wraps most of the win32api functions for accessing a registry. It will read and write all win32 registry types, and will de/serialize python objects to registry keys when a string or integer representation is not possible. ...
Python

TryFinally

This script is a convenient way to deeply nest try/finally statements. It is appropriate for complicated resource initialization and destruction. For instance, if you have a list of 50 things that need to get intialized and later destructed via using try/finally (especially if you need to create the list dynamically) this function ...
Python