This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SingletonClass { | |
private static $instance; | |
private function __construct() { } | |
public function __clone() { | |
trigger_error('Clone is not allowed.', E_USER_ERROR); | |
} | |
public static function init() { | |
if (!isset(self::$instance)) { | |
$c = __CLASS__; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Georgian Keyboard Plugin for jQuery | |
* Copyright (c) 2012 Levan Melikishvili. | |
* Licensed under the MIT license. | |
* Version: 0.1 | |
* | |
example usage: | |
$('form_selector').geoKeyboard(); |