Search
New Code
Best Featured Online Classified Ads Solution 2.0
Magento 2 Frontend Builder 2.0
Devart SSIS DataFlow Components 1.6
Bytescout PDF Viewer SDK 8.7.0.2980
Readymade Job Site Script 2.0.1
SentiMask SDK Trial 1.0
Bytescout Spreadsheet SDK 2.9.0.1677
Taxi Booking Solution 1.0
Realtor Script - Vacation Rental Script 3.1
Chartered Accountant Listing Script 2.3
PHP Dice Clone Script 1.0.2
Hex Comparison 5.13
Realtor script, Property Portal Script 2.0.6
Bytescout BarCode Reader SDK 9.3.0.1728
RestoByte - Restaurant POS system 1.2
Top Code
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Jango Clone 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
Classified Ad Lister 1.0
Code Listing by Justin Shaw

Code 1-10 of 10   






Very rarely it is necessary to find the multiplicative inverse of a number in the ring of integers modulo p. Thie recipe handles those rare cases. That is, given x, an integer, and p the modulus, we seek a integer x^-1 such that x * x^-1 = 1 mod p. For example 38 is the inverse of 8 modulo 101 since 38 * 8 = 304 = 1 mod 101. The inverse only exists when a and p are relatively prime.



The new Lego Mindstorms NXT brick has an on-board Bluetooth transceiver that can
connect to a serial port service on a PC. The NXT uses a simple format to pass
raw bytes between connected Bluetooth devices. This interface allows the...



Class methods were introduced in python2.2. The following code illistrates how the same effect can be achived in python 2.1 and probably under although I haven't checked.



Since the class is itself a singleton, it makes since to utilize it as such. The solution is to make every thing in sight a classmethod.

See

<a...



I frequently find myself adding "just in time" (JIT) object creation to avoid wasting cycles on objects that are never used. This class enables JIT object creation by basically currying the __init__ method.

The object is...



How to kick off a slow process without waiting around for the result. The process is run in the background until the value is actually needed at which time it blocks until the value is ready.



This recipe yields each subset of size k from a super set of size n. I thought I had seen a recipe that did this before, but when I needed it I couldn't find it. There are two methods. The first operates on sets of integers of the form...



This is a simplified version of George Sakkis recipe entitled "Cache decorator in python 2.4" (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325205). In this version, no extra classes are required and this is small enough to...



This is a simple way of expressing non-linear scales (such as decibels) in python. In stead of:
gain = 10 ** (12/10.)

Use
gain = 12 * dB



Here is how to use the new decorator feature of python 2.4 to systematically check the argument types for type-sensitive functions.