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
| var map = function(){ | |
| emit(this.DateTime+this.TrunkId+this.OriginatingNumber+this.DialedNumber+this.AuthIP+this.RatedLength+this.ActualLength, {count:1, id: this._id}); | |
| } | |
| var reduce = function(key, values){ | |
| var result = {count:0, id:0}; | |
| values.forEach(function(value) { | |
| result.count += value.count; | |
| result.id = value.id; | |
| }); |
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
| <? | |
| require_once 'AWSSDKforPHP/aws.phar'; | |
| use Aws\Sqs\SqsClient; | |
| class Queue | |
| { | |
| private static $_db; | |
| private $_client; |
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 ( $ ) { | |
| $.fn.bounce = function(e) { | |
| $(this).mousemove(function(e) | |
| { | |
| if (this.isAlreadyAnimating) return; | |
| var baseExpX = 3; | |
| var baseExpY = 3; |
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 | |
| /** | |
| * Ejemplo de implementación de generador | |
| * de laberintos usando grafos y backtracking | |
| * aleatorio | |
| * | |
| * laberinto.php | |
| * | |
| * PHP version 5.5.5 | |
| * |
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
| /** | |
| * Parse SMS UDH | |
| * @return array | |
| */ | |
| function parseUDH($value) { | |
| $udhArray = str_split($value,2); | |
| $udh['udhLenght'] = $udhArray[0]; // UDH Lenght | |
| $udh['iei'] = $udhArray[1]; // Information Element Identifier | |
| $udh['headerLenght'] = $udhArray[2]; // Length of the header, excluding the first two fields. |