print_r(print<Tab>)
echo "<pre><div class='hgPrintR' style='border:1px solid blue;'>";
print_r(${VARIABLE variableFromPreviousAssignment default="$_POST"}${cursor});
echo "</div></pre>";
var_dump(var<Tab>)
| jQuery(document).ready(function( $ ){ | |
| function checkIfInView(element){ | |
| var offset = element.offset().top - $(window).scrollTop(); | |
| if(offset > window.innerHeight){ | |
| // Not in view so scroll to it | |
| //$('html,body').animate({scrollTop: offset}, 1000); | |
| return false; | |
| } | |
| return true; |
| <?php | |
| /** | |
| * Description of Json2Xml | |
| * | |
| * @author eislas | |
| */ | |
| class Json2Xml { | |
| /** | |
| * |
| CREATE TABLE if not exists empleo_test (blob_col BLOB, INDEX(blob_col(10))); |
| #!/bin/bash | |
| #Redime un codigo cada 5 a 10 segundos de una lista en un archivo de texto | |
| #Recomiendo no redimir mas de 30 codigos seguidos para que no les ballan a bloquear la cuenta | |
| #Y estar al tanto de la salida para detener el script si se calienta | |
| #en ese caso mostrará un mensaje como este "Passcode circuitry too hot. Wait for cool down to enter another passcode." | |
| if [ "$1" != "" ]; then | |
| echo "Procesando codigos del archivo $1" | |
| else | |
| echo "proporciona un archivo con códigos, Ej. #sh redeemCodes.sh codes.txt" |
| /** | |
| * @example | |
| * to use in controller you ned insert WS service: | |
| * <example> | |
| * ... | |
| * .controller('YourCtrl', function ($scope, WS) { | |
| * var request = WS.uploadFile('Template', 'upload', {template: templateName}, file); | |
| * request.then(... | |
| * ... | |
| * </example> |
| <?php | |
| /** | |
| * Description of CfdiObject | |
| * Crea un objeto a partir de un XML de CFDI par su facil manejor en php como objeto | |
| * | |
| * @author eislas | |
| * @param $element String|DOMElement XMLfile path or a dom_import_simplexml(simplexml_load_file(XML_PATH_FILE)) result object. | |
| * @use $cfdiObject = new CfdiObject($element); | |
| */ | |
| class CfdiObject { |
| <?php | |
| $client = new SoapClient("https://consultaqr.facturaelectronica.sat.gob.mx/ConsultaCFDIService.svc?wsdl"); | |
| $result = $client->__soapCall('Consulta', array(array('expresionImpresa' => '?re=' . filter_input(INPUT_GET, 're') . '&rr=' . filter_input(INPUT_GET, 'rr') . '&tt=' . filter_input(INPUT_GET, 'tt') . '&id=' . filter_input(INPUT_GET, 'id')))); | |
| var_dump($result); |
| <?php | |
| /** | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| /* | |
| * This is a copy of ng-click directive and modified to handle Drag and Drop events | |
| */ | |
| /** | |
| * @ngdoc directive | |
| * @name ngDragover | |
| * | |
| * @description | |
| * The `ngDragover` directive allows you to specify custom behavior on a dragover event. | |
| * |