This file contains hidden or 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 | |
/** | |
* This singleton object is responsible for keeping references to variables like the database object, | |
* the user object, and any other variable that is required for most pages. | |
* | |
*/ | |
class application { | |
/** |
This file contains hidden or 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 | |
/** | |
* This singleton object is responsible for keeping references to variables like the database object, | |
* the user object, and any other variable that is required for most pages. | |
* | |
*/ | |
class application { | |
/** |
This file contains hidden or 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
window.location.replace('new_web_page.html'); |
This file contains hidden or 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 Toggle { | |
private $config; | |
private $temp; | |
public function __construct() { | |
$args = func_get_args(); | |
if (empty($args)) { | |
throw new Exception('Toggle requires an array or an argument list.'); |
This file contains hidden or 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 | |
function rand_large($min, $max) { | |
if ($max > PHP_INT_MAX) { | |
$adjusted_max = bcsub($max, $min); | |
$adjusted_min = 0; | |
if ($adjusted_max > PHP_INT_MAX) { | |
$sections = floor(bcdiv($adjusted_max, PHP_INT_MAX)); | |
$remainder = bcmod($adjusted_max, PHP_INT_MAX); |
This file contains hidden or 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
YUI().use('node', 'dd-drag', function (Y) { | |
Y.on('contentready', function (e) { | |
var dds = [], | |
els = Y.all('#ex1Page .box').each(function (el) { | |
var key = dds.length; | |
dds[key] = new Y.DD.Drag({ | |
node: el | |
}); | |
}); |