Singleton Pattern
This script contains a class that shows how to implement the singleton pattern in Python. A singleton is a class that makes sure only one instance of it is ever created. Typically such classes are used to manage resources that by their very nature can only exist once.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): The Singleton Pattern implemented with Python Download |
Intent: Ensures a class only has one instance and provide a global point of access to it [1].Motivation: It's important for some classes to have exactly one instance. For example, it can be desirable to have only a single instance of a GUI. With a MATLABdlT« GUIDE built GUI, the driver or main...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (47): Design Pattern: Singleton (Creational) Download |
Knitting Pattern Generator is a Python script to convert image files (PNG, GIF, BMP, etc.) into knitting patterns. Usage: python kpg.py myimage.png.
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (700): Knitting Pattern Generator Download |
Test::Singleton is a test for Singleton classes. SYNOPSIS use Test::More tests => 1; use Test::Singleton; is_singleton( "Some::Class", "new", "instance" ); ** If you are unfamiliar with testing read Test::Tutorial first! ** This is asimple, basic module for checking whether a class is a...
Platforms: *nix
License: Freeware | Size: 25.6 KB | Download (91): Test::Singleton Download |
The Official Pattern Release or OPR is Trend Micro's latest compilation of patterns for identified viruses. Trend Micro offers various types of Pattern Files to protect customers from Malware, Spyware/Grayware, and other threats... It is guaranteed to have passed a series of critical tests to...
Platforms: Linux
License: Freeware | Size: 45.48 MB | Download (49): Trend Micro Virus Pattern File for Linux Download |
The Official Pattern Release or OPR is Trend Micro's latest compilation of patterns for identified viruses. Trend Micro offers various types of Pattern Files to protect customers from Malware, Spyware/Grayware, and other threats... It is guaranteed to have passed a series of critical tests to...
Platforms: Windows
License: Freeware | Size: 45.48 MB | Download (54): Trend Micro Virus Pattern File Download |
In this game you will be given a grid of blocks, some of the grids will be highlighted for a moment, you need to memorise the pattern of the highlighted blocks and then reproduce the pattern. As the game progresses the grid will be larger and the number of highlighted blocks will also be larger,...
Platforms: Windows
License: Freeware | Size: 262 KB | Download (489): Pattern Memory Download |
This class implements the observer design pattern. Acting as a registration hub, it fires simple Events when requested.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (49): Observer Design Pattern Download |
This script is an implementation of the singleton without using the __new__ class but by implementing the __call__ method in the metaclass.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Simple Singleton Download |
This script allows you to generate all the string described by a pattern passed on the command-line.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Simple pattern-based string generator Download |
This script is a sample implementation of the 'Null Object' design pattern. Roughly, the goal with Null objects is to provide an 'intelligent' replacement for the often used primitive data type None in Python or Null (or Null pointers) in other languages. These are used for many purposes...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Null Object Design Pattern Download |
In the factory pattern script you have an object that creates other objects.Factory is useful to separate implementation from interface. It adds a new indirection layer. When you want to instanciate an object you call its factory and the factory creates the instance.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Factory pattern Download |
This script is an implementation of the prototype pattern. In the prototype pattern you create a new instance cloning from other.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Prototype pattern Download |
Memento design pattern in python script allows you to cache instances based on what arguments are passed to them.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Memento design pattern in python Download |
In effect, this script provides a pattern for a set of quasi-singletons, identified by keyword. If no keyword is given, the default share is accessed.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Quasi-Singleton Metaclass Download |
This is a Python implementation of the observer pattern. It defines a one-to many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Observer Pattern Download |
This script separates pattern implementation from your code so that you can reuse the implementation elsewhere. It is an example that shows a reusable implementation of the Observer pattern.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Separating Pattern Implementation from Your Code Download |
This script creates a unique instance of classes that uses Singleton as their metaclass. Used as a metaclass, Singleton replaces a class with a unique class instance. Any subsequent calls to the class's constructor will result in an exception, as the constructor is overwritten immediately after...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (65): Another Singleton Implementation Download |
Simple tutorial on pattern recognition using back propagation neural networks. the program has 3 classes with 3 images per class.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (62): Neural Network for pattern recognition- Tutorial Download |
PDO Singleton is an instance of the PDO object that acts as a singleton is created.The PDO Singleton provides functions to access a database using the PDO object for executing queries, retrieving the results and managing transactions.
Platforms: PHP
License: Freeware | Size: 10 KB | Download (41): PDO Singleton Download |