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
(defparameter *tree2* '(40 (30 (25 () ()) (35 () ())) (60 (50 () ()) ()))) | |
(defparameter *tree* '(3 (2 (1 () ()) ()) (5 () ()))) | |
;validate if given parameter is a binary tree or not | |
(defun is-tree(tree) | |
(cond | |
((null tree) NIL) | |
((< (list-length tree) 3) NIL) | |
(t) | |
) |
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 | |
use \Go\Core\AspectKernel; | |
use \Go\Core\AspectContainer; | |
/** | |
* Application Aspect Kernel | |
*/ | |
class ApplicationAspectKernel extends AspectKernel | |
{ |
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
//test.class.php | |
<?php | |
class Test implements ArrayAccess | |
{ | |
private $data = array(); | |
public function __set($key, $value){ | |
$this->data[$key] = $value; | |
} | |
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 | |
namespace S3; | |
use Aws\S3\S3Client; | |
use \Aws\Common\Exception\TransferException; | |
/** | |
* Description of S3Client | |
* @author Rana | |
* @link http://codesamplez.com/programming/amazon-s3-get-multiple-objects-php |
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 | |
namespace Doctrine\DBAL\Logging; | |
class CIProfiler implements SQLLogger | |
{ | |
public $start = null; | |
private $ci; |
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 | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
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 PDAO implements \ArrayAccess, \Iterator | |
{ | |
/** | |
* @var array data | |
*/ | |
protected $data = array(); | |
/** |
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
var apn = require("apn") | |
var apnError = function(err){ | |
console.log("APN Error:", err); | |
} | |
var options = { | |
"cert": "cert.pem", | |
"key": "key.pem", | |
"passphrase": null, |
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
class Tooltip { | |
private var theTip:MovieClip; | |
private var tFormat:TextFormat; | |
function Tooltip(hex:Number,hex2:Number) { | |
this.theTip = _root.createEmptyMovieClip("tooltip", _root.getNextHighestDepth()); | |
this.theTip.createTextField("theText",this.theTip.getNextHighestDepth(),3,1,95,20); |
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
static searchQueries() { | |
const queryString = window.location.search.substring(1) | |
const pairs = queryString.split('&') | |
let queryObj = {} | |
for (let i=0; i<pairs.length; i++) { | |
const keyVal = pairs[i].split('=') | |
queryObj[keyVal[0]] = decodeURIComponent(keyVal[1]) | |
} | |
return queryObj | |
} |
OlderNewer