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 JSClass{ | |
/** | |
* @var array a container for all of the Class's members and methods. | |
*/ | |
private $params = array(); | |
/** | |
* @param array $params a list of members and methods to assign to the Class | |
* @access private |
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
(function(window,undef){ | |
//get a new XMLHttpRequest object | |
function getXHR(){ | |
//for IE: | |
if (window.ActiveXObject){ | |
try{ //newer version | |
return new ActiveXObject('MSXML2.XMLHTTP'); | |
}catch (e){//older version |
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
#!/bin/sh | |
#========== | |
# Settings | |
#========== | |
# Is this shell runing in cygwin (1/0) | |
cygwin=0; | |
# Drive containing www folder (only needed for cygwin users) |
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
function $count(obj){ | |
var childs = []; | |
if (!obj) return 0; | |
switch($type(obj)){ | |
case 'number' : return obj; | |
case 'function': | |
return ((obj+"").test(/[{]([\W]*[\w]+[\W\w]*)[}]/)) ? 1: 0; | |
NewerOlder