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 | |
ini_set("soap.wsdl_cache_enabled", "0"); | |
ini_set("soap.wsdl_cache", "0"); | |
ini_set("display_errors","On"); | |
ini_set("track_errors","On"); | |
class Soap | |
{ | |
public $client; | |
public $login; |
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
This XML file does not appear to have any style information associated with it. The document tree is shown below. | |
<wsdl:definitions xmlns:esbns1="http://www.caliente.com.mx/ApuestaRemota" xmlns:esbns2="http://www.caliente.com.mx/ApuestaRemota" xmlns:esbns3="http://www.caliente.com.mx/ApuestaRemota" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://soa.jboss.org/Deportes" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://soa.jboss.org/Deportes"> | |
<wsdl:types> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.caliente.com.mx/ApuestaRemota" version="1.0"> | |
<xs:include schemaLocation="http://gestor.caliente.com.mx:8080/ApuestaRemotaESB/ebws/Deportes/ListaDeportes?wsdl&resource=tipos/req-lista-deportes-type.xsd"/> | |
</xs:schema> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.caliente.com.mx/ApuestaRemota" version="1.0"> | |
<xs:include schemaLocation="http://gestor.caliente.com.mx:8080/ApuestaRemotaESB/ebws/Deportes |
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
<!DOCTYPE> | |
<html> | |
<head> | |
<title>My page </title> | |
</head> | |
<body> | |
</body> | |
</html> |
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 DbMySQL { | |
private $host = DB_HOST; | |
private $user = DB_USER; | |
private $password = DB_PASSWORD; | |
private $database = DB_DATABASE; | |
private $linkId = null; | |
function connect () { | |
if ($this->linkId == 0) |
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 http = require("http"); | |
http.createServer(function(request, response){ | |
response.writeHead(200, {"Content-Type":"text/plain"}); | |
response.write("hello world"); | |
response.end(); | |
}).listen(8888); |
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 a = ["a","m"], | |
b = ["a","c","x","l","m"] , | |
c = [], //array with matches | |
i = a.length, | |
j; | |
while(i--) { | |
j = b.length; | |
while (j--) { | |
if (b[j] == a[i]) { |
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
({}[{ toString: function x(){ ToString = x.caller; } }]); | |
delete ({}[{ toString: function x(){ DELETE = x.caller; } }]); | |
({ toString: function x(){ IN = x.caller; } } in {}); |
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
//Tip of the day | |
//Variable declaration | |
//Every declaration out of any scope becomes | |
//part of the global object like | |
var i = 0; | |
var j = 0; | |
var bar = function () {}; | |
// A common JavaScript bug is with the undecleared variables in any scope they become part of the global object as well |
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
function injector (objects) { | |
function functionArgsName(fn) { | |
var fragment; | |
fn = fn.toString(); | |
//remove comments | |
fn = fn.replace(/(\/\*([\s\S]*?)\*\/)|(\/\/(.*)$)/gm,""); | |
fragment = fn.match(/function\s*\w*\s*\((.*?)\)/)[1]; | |
if (!/^[\s]*$/g.test(fragment)) { | |
return fragment.replace(/(\s)/g,"").split(","); |
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
/**** | |
* Inmediate Function scopes the Application to prevent variable pollution | |
* @param: {Object} global , Reference of the global object | |
* @param: {Obejct} FWK , Custom framework | |
*/ | |
;(function (global, FWK, Node) { | |
'use strict'; | |
// Defining global constants for the app | |
FWK.const('RANGE_MINUTES' , 720); // Range minutes from 0 to 720 |