FAST AOL Contact List Grabber and Invitation System
This is one of the most demanded modules for especially dating websites and web portals. User can login to AOL directly from your website and then his AOL Contact List will be displayed with a checkbox in front of every email address. Where he can select either one or more email addresses and on submission automatically an Elegant HTML email is sent to all the selected...
What if you had a list like this: [1, -10, [1,2,[3,4]], xrange(200)], and you just wanted to go through each element in order (wanted it to return a simple list of [1,-10,1,2,3,4,1,2,3,4...199])
I've seen a couple of attempts to flatten...
This code lets you retrieve multiple elements from a list at one time
This recipe returns a list of size n such that the contents of the returned list are random 0s and 1s. It returns a random binary list of size n.
This algorithm searches for more than one element in a list. The input is a list that you want to search through and a list of elements that you want to search for. The output is a multidimensional list with the positions of the elements you are...
This module/function lets you find a 2 dimensional list of indices for elements you are looking for in a super list.
returns: [[0, 1, 2, 4], [3, 5], [6, 7]]
Return a list from a ConfigParser option. By default, split on a comma and strip whitespaces.
Given an arbitrary list (of length >= 1) of positive integers, return the greatest common divisor (gcd) of the list.
Linked list implementation based on Python 2.7 collections.MutableSequence with a few benchmarks comparing the linked list with the built-in list type.
This function takes a range in form of "a-b" and generate a list of numbers between a and b inclusive.
Also accepts comma separated ranges like "a-b,c-d,f" will build a list which will include numbers from a to b, a to d...
Just a list subclass with a fast hash based __contains__ provided by a Set. Inheriting from list was far more work than I had anticipated AND the code below is still buggy.
Still, this provides O(1) indexed access and O(1) contains. If...
This flattenizes any nested level list. I couln't find this in itertools module so I wrote it. Python 3 may be required.
Turn a flat list into a nested list, with a specified number of lists per nesting level.
This is a little code for making a list that can have only items from a list of types
As subclassing list has a problem when using __getitem__, __delitem__ and __setitem__ methods with slices (they don't get called because parent implements __getslice__, __delslice__ and __setslice__ respectively), I've coded this UserList class...
Here is a quick and dirty way to sort a list of dictionary based on a key value.
Function to clean trailing and or preceeding whitespace from string types in complex list, dictionary, and tuple structures. This is a recursive function to allow for complete coverage of all items in the structure. Wanted to share it as I needed...
This script helps you to organize a list of values. You can place them in any order.
You are allowed to add and delete items from the list.
This script shows you a list of options based on what you type into a text input.