The key of life is an infinite circle of
inspiration > idea > action > reflection >
The key of life is an infinite circle of
inspiration > idea > action > reflection >
Since NaN is not even equal to itself, here is a way to test it: | |
From: http://de.php.net/manual/en/function.is-nan.php#50295 | |
<?php | |
function my_is_nan($_) { | |
return ($_ !== $_); | |
} |
<?php | |
/** | |
* @author Marco Bunge | |
* @copyright 2012 Marco Bunge <efika@rubymatrix.de> | |
*/ | |
abstract class AbstractSqlCommand { | |
public function build(){ | |
return implode(' ', $this->getCommandElements()); |
<?php | |
/** | |
* @author Marco Bunge | |
* @copyright 2012 Marco Bunge <efika@rubymatrix.de> | |
*/ | |
interface CollectionInterface | |
{ | |
/** | |
* @abstract |
<?php | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |
<?php | |
/** | |
* @author Marco Bunge | |
* @copyright 2012 Marco Bunge <efika@rubymatrix.de> | |
*/ | |
$string = 'HTTP/1.1 200 OK | |
Server: Apache/1.3.29 (Unix) PHP/4.3.4 | |
Content-Length: (Größe von infotext.html in Byte) | |
Content-Language: de (nach RFC 3282 sowie RFC 1766) |
<?php | |
$stdClass = new stdClass(); | |
$stdClass->value = 'HELLO WOLRD'; | |
//return message defined by $stdClass::value with a context | |
//use $stdClass as scope | |
$lambda = function($context) use ($stdClass) | |
{ | |
$msg = $context . ': ' . $stdClass->value; | |
return $msg; |
<?php | |
/** | |
* | |
* @author Marco Bunge <mjls@web.de> | |
* @copyright 2015 Marco Bunge | |
* @license http://opensource.org/licenses/MIT | |
* | |
* For the full copyright and license information, please view the LICENSE.txt | |
* file that was distributed with this source code. |
/** | |
* Created by Marco Bunge on 18.08.2015. | |
* Inspired by http://ryanalberts.com/797/parsley-validation-with-angularjs/ | |
*/ | |
(function (angular, jq, window, document) { | |
'use strict'; | |
//var ngParsley = angular.module('parsley', []) | |
//ngParsley.constant('parsleyConfig', {}); | |
var ngParsleyJs = angular.module('parsley', []); |
/** | |
* @author Marco Bunge <marco_bunge@web.de> | |
* @copyright 2015 Marco Bunge http://marco-bunge.de | |
* @licence MIT http://opensource.org/licenses/MIT | |
* | |
* Get in touch and follow me at twitter http://twitter.com/makk_eightbit! Thank you! | |
* | |
* Adjust element to an aspect ratio based on height or width. | |
* Default aspect ratio is 16:9 (tv) | |
* Usage: |