Tag : Ordered

Title User Language Tags Description Date
Center a unordered list bobbym245 CSS December 8, 2010
Unordered list ian mullen HTML Unordered list June 10, 2010
Moveable Bordered TitlebarLESS Form Nunya Bidnezz VB.NET This is a bordered form that does not have a TitleBar. Code has been added to allow dragging the form around April 18, 2010
Ordered Double Linked List Using head and tail poncho4all C++ This snippet gives a doubly linked list with an int part that is ordered ascendant or descendant September 12, 2009
Ordered Linked List Using head and tail poncho4all C++ This snippet takes in int data and orders it in descending order and you can pull out certain value without killing the whole list September 3, 2009
Ordered Dictionary for Py2.4 Raymond Hettinger python

Drop-in substitute for Py2.7's new collections.OrderedDict. The recipe has big-oh performance that matches regular dictionaries (amortized O(1) insertion/deletion/lookup and O(n) iteration/repr/copy/equality_testing).

March 18, 2009
Cross Browser Ordered List W/ Images cbx CSS

This will create a bulleted list using images as the bullets.

January 9, 2009
Ordered Set Adam Olsen python

An ordered set using insertion order. It can also be seen as a linked-list with a uniqueness constraint and O(1) lookups.

August 16, 2007
Ordered Dictionary that works Anand Chitipothu python

A dictionary in which the insertion order of items is preserved.

Based on Doug Winter's recipe http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438823

June 7, 2007
A more clean implementation for Ordered Dictionary Igor Ghisi python

An Ordered Dict records the order in which items are added. This implementation uses much less code than the others by extending not well-known class DictMixin.

May 31, 2006
Ordered Dictionary Doug Winter python

Yet another ordered dict.

August 9, 2005
Binary ordered tree Lawrence Oluyede python

A simple example demonstrating the construction of binary trees.

July 13, 2004
OrderedMultiDict and UnorderedMultiDict Andrew Dalke python

This implements two types of dictionary-like objects where there can be more than one entry with the same key. One is OrderedMultiDict, which preserves the order of all entries across all keys. The other is UnorderedMultidict, which only preserves the order of entries for the same key.

Download MultiDict.py Example:

>>> import MultiDict
>>> od = MultiDict.OrderedMultiDict()
>>> od["Name"] = "Andrew"; od["Color"] = "Green"
>>> od["Name"] = "Karen"; od["Color"] = "Brown"
>>> od["Name"]
'Karen'
>>> od.getall("Name")
['Andrew', 'Karen']
>>> for k, v in od.allitems():
...     print "%r == %r", (k, v)
...
'Name' == 'Andrew'
'Color' == 'Green'
'Name' == 'Karen'
'Color' == 'Brown'
>>> ud = MultDict.UnorderedMultiDict(od)
>>> for k, v in ud.allitems():
...     print "%r == %r", (k, v)
...
'Name' == 'Andrew'
'Name' == 'Karen'
'Color' == 'Green'
'Color' == 'Brown'
>>>
January 9, 2003
Unroll a single-dimension sequence into an HTML unordered list Mark Nenadov python

This function simply takes a single-dimension sequence and converts into into an HTML unordered list. This function makes it simple to present the contents of a sequence on the web in an neat fashion.

June 19, 2001
OrderedDictionary Jay O'Connor python

This is a class that acts like a dictionary, except that it maintains insert order. This can be useful when you wish to associate two objects in a key-value manner and would like to use a dictionary interface to access the elements, but you need to remember what order the elements were added

March 15, 2001