Search
New Code
Uber for Massage 2.0
Job Board Software 1.1
RentALL - Airbnb Clone | Built with ReactJS 2.6
VB.Net PDF 2020.6.0
Flowrigami 1.0.0
SentiVeillance SDK Trial 7.3.2020.03.02
Entity Developer 6.8
dbExpress driver for SQLite 4.2
dbForge SQL Complete 6.5
Advanced Amazon Clone App 2.0
Appjetty Delivery Date Manager 1.0.0
The C# Barcode Library 2020.5.0
Chowtro - Online Restaurant Food Ordering Software 1.0
Alvas.Audio.Core 2019.0
Sainsburys Script 1.3.2
Top Code
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Code Listing by George Sakkis

Code 1-10 of 22   Pages: Go to  1  2  3  Next >>  page  






The Heap class is an improvement over a previous recipe (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/437116) that also wraps the heapq module. There are two main differences from the other recipe:
- All methods on this heap preserve the heap property invariant; therefore there is no need for is_heap().
- When creating a new heap, an optional 'key' argument can be specified to determine the comparison key for the items to...



Python tuple unpacking works only for fixed length sequences, that is one cannot write something like:
for (x,y,z=0,*rest) in [(1,2,3), (4,5), (6,7,8,9,10)]: print x,y,z,rest

This recipe returns a pad function that implements this...



A regular expression just-for-fun recipe for leeching email addresses.. even
some of those that are supposed to be only human readable.



A small yet flexible threadpool implementation. I wasn't quite satisfied with other existing solutions, so I rolled one on my own, building on top of the threadpool module by Christopher Arndt.

See the example in the end and the...



Programs that deal with measured quantities usually make an implicit assumption of the measurement unit, a practice which is error prone, inflexible and cumbersome. This metaclass solution takes the burden of dealing with measurement units from...



This recipe implements a round-robin generator, a generator that cycles through N iterables until all of them are exhausted:

>>> list(roundrobin('abc', [], range(4), (True,False)))
['a', 0, True, 'b', 1, False, 'c', 2, 3]



A memory efficient implementation of a mapping type for mappings with fixed keys.



This recipe refines an older recipe on creating class properties (
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183). The refinement consists of:
- Using a decorator (introduced in python 2.4) to "declare" a...



A common task, especially in text processing, is to break some input sequence into chunks (lines, paragraphs, records, etc.) and process them one by one. The iterators of builtin strings and files can be considered such chunkers, breaking the...



This recipe builds on two previously posted recipes for a null or dummy object by modifying a few methods (e.g. as in SQL, Null == Null is Null, not True), supporting most (all?) special methods (e.g. int(Null)) and providing correct...