Search
New Code
Dynamics CRM Inventory Manager Plugin 1.0
Overstock Script 1.0.3
C# HTML to PDF 4.4.6.2
AnyGantt JS Gantt Charts 8.2.0
SentiVeillance SDK Trial 6.0.176566
Popup extension for Magento 2 2.2.x
Excel Add-in for Shopify 1.7
PHP Classified Script 1.0.3
Popup For Magento 2 2.2.x
Desktop Live Streaming SDK - Screen2Video Gold ActiveX 5.2
ODBC Driver for PostgreSQL 2.3
WooCommerce Product Customizations 1.0
Apartment Rental Software 1.0.3
Verj.io 1.1
Order ODBC Driver for MySQL 2.3
Top Code
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Code Listing by Raymond Hettinger

Code 1-10 of 64   Pages: Go to  1  2  3  4  5  6  7  Next >>  page  






Variant of iter(func, sentinel) that looks for an exception rather than for a sentinel value. Good for making iterators from of APIs that advance over a data and return an exception when they are done.



Explore the story behind the mysterious number 6174. Generate all possible chains leading to 6174, show their length and their patterns of convergence.



Inspired by Py2.3's TimSort, this implementation of sets.py uses sorted lists instead of dictionaries. For clumped data patterns, the set operations can be super-efficient (for example, two sets can be determined to be disjoint with only O(n)...



Creates believable Chomsky style obfuscated prose.



Solves the "tail-problem" for prose-oriented XML. Recursively pulls text out of elements and their sub-elements. Extracts text from DocBook, XMHTL, and other nested XML markup.



One-line decorator call adds caching to functions with hashable arguments and no keyword arguments. When the maximum size is reached, the least recently used entry or least frequently used entry is discarded -- appropriate for long-running...



dbdict: a dbm based on a dict subclass.

On open, loads full file into memory.
On close, writes full dict to disk (atomically).
Supported output file formats: csv, json, and pickle.
Input file format automatically...



Decorator for the "f . g" style of function composition familiar to functional programmers.



Fast factory funtion for Py2.5's defaultdict making simple use of itertools. Equivalent to lambda:some_constant.



Evaluate using Decimals instead of floats.