Singleton
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 |
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 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 |
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 |
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 |
Singleton PDO can be used to create a singleton instance of the PDO class.Singleton PDO provides a static function that stores a reference of the current object in a static variable. Next time the function is called, it returns a reference to the first object that was created.Additionally,...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (40): Singleton PDO Download |
This class is a basic Singleton log file creator. It allows separate classes/modules to log their activities to the same file (even the same line if they want to).This is a quite basic log file creator, intended to assist in program development. It is a singleton class so that if multiple log...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): A Singleton log file creator 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 |
The activity can optionally be logged to a class variable.Key Features of PDO wrapper singleton:- Setup database connections- Execute prepared queries- Retrieve result sets into arrays- Retrieve the last inserted identifier value
Platforms: PHP
License: Freeware | Size: 10 KB | Download (40): PDO wrapper singleton Download |
Class::StrongSingleton is a stronger and more secure Singleton base class. SYNOPSIS package My::Singleton::Class; use base qw(Class::StrongSingleton); sub new { my ($class, %my_params) = @_; # create our object instance my $instance = { %my_params }; bless($instance, $class); # and...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (96): Class::StrongSingleton 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 |
EOG Correction program is used to work out the amount of ocular potential recorded by the electroencephalograph [EEG] (as a proportion of the potentials recorded by the electrooculograph [EOG]), and to subtract this from the EEG. By doing this we are able to reduce the effect of ocular potentials...
Platforms: Matlab
License: Freeware | Size: 3.16 MB | Download (45): RAAA EOG Correction Program Download |
The harmony elements algorithm is proposed as a global searching technique of numerical computing which inspired by the old Chinese philosophy: Doctrine of Wu Xing, the five color theorem, and the Hoffman-Singleton graph. According to operation of overcoming and generating policy, each element in...
Platforms: Matlab
License: Freeware | Size: 276.48 KB | Download (53): Five elements algorithm Download |
A singleton, that concentrates access to a MySQL database into a single object, is implemented.ClsMySQL can perform the usual database access operations like establishing database server connections, executing SQL queries, retrieving results into rows or objects, getting the number of result set...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (40): ClsMySQL Download |
Django app allowing users to set app specific preferences through the admin interface. Provides singleton admin views for Preferences objects and a simple interface to preference values. Singleton views ensures only one preference intance is available for each Preferences class.
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (32): django-preferences Download |
A Sudoku Solver in C is a console-based Linux program, written in C language, that solves Su Doku puzzles using deductive logic. It will only resort to trial-and-error and backtracking approaches upon exhausting its deductive moves. Puzzles must be of the standard 9x9 variety using the (ASCII)...
Platforms: *nix
License: Freeware | Size: 25.6 KB | Download (203): A Sudoku Solver in C Download |
RealmForge project is a cross-platform 3D game engine for .NET. RealmForge is a .NET 3D game engine predecessor to Visual3D.NET (www.visual3d.net), which is a framework and toolset for the visual design and development of 3D games, simulations, and interactive environments using C#, .NET 2.0,...
Platforms: *nix
License: Freeware | Size: 81 MB | Download (94): RealmForge Download |
Net::DBus::Tutorial::ExportingObjects is a Perl module that contains tutorials on providing a DBus service. This document provides a tutorial on providing a DBus service using the Perl Net::DBus application bindings. This examples in this document will be based on the code from the...
Platforms: *nix
License: Freeware | Size: 94.21 KB | Download (95): Net::DBus::Tutorial::ExportingObjects Download |
MPI Ruby is a Ruby binding of MPI. MPI Rubys primary goal in making this binding was to make the power of MPI available to Ruby users in a way that fits into the languages object oriented model. In order to do this, the buffer and datatype management necessary in the C, C++, and Fortran...
Platforms: *nix
License: Freeware | Size: 122.88 KB | Download (104): MPI Ruby Download |
simplus is a C++ library for constructing event-driven simulations with an abstraction for processes, virtual time, messages and more. It features a built-in debugger, support for configuration files, and a flexible logging mechanism. It is lean, fast, and portable, but has only basic...
Platforms: *nix
License: Freeware | Size: 450.56 KB | Download (94): simplus Download |