Skip to content

Instantly share code, notes, and snippets.

Juan Pablo Lozano devloe

Block or report user

Report or block devloe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lala.js
const queryParams = "...........&type=ATTACHMENT&filename=" + fileName;
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
// Action to be performed when the document is read;
}
};
View a.php
<?php
public static function upload($httpRequest, $filedata,$filesize, $filename){
$authToken = Helper::getAuthToken($httpRequest);
$userId = Helper::getUserId($httpRequest);
// if (!is_null($authToken)&&!is_null($userId)){
$method = '?externUserId=' . $userId . '&authToken=' . $authToken .'&type=ATTACHMENT&filename='.$filename;
// } else {
// $method = '/'.$service.'?externUserId='.$request->getDeviceId();
View gist:0f2e87a63c1c7f0f4e59f5effab3a042
{"swagger":"2.0","info":{"description":"Description","version":"4.0","title":"Mediktor API","contact":{"name":"Mediktor","url":"https://www.mediktor.com","email":"info@mediktor.com"}},"host":"office.mediktor.com","basePath":"/dev","tags":[{"name":"web-service-controller","description":"Web Service Controller"}],"paths":{"/services/agreeLegalTerms":{"post":{"tags":["web-service-controller"],"summary":"agreeLegalTerms","operationId":"agreeLegalTermsUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"in":"body","name":"params","description":"params","required":true,"schema":{"$ref":"#/definitions/AgreeLegalTermsRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/GenericResponse"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"security":[{"basic":["global"]}]}},"/services/analytics":{"post":{"tags":["web-service-controller"],"summary":"analytics","operationId":"anal
View cardiorisk.php
<?php
class CardioRisk {
public static function calculateFemale($age, $cholesterol, $hdl_c, $systolic, $diastolic, $db, $smoker) {
$total_points = 0;
// Edad
if($age > 30 && $age < 34) {
$total_points += -9;
}
View gist:d8ad053363b16b41c8a2245fc3fdd22a
Listen 8888
<VirtualHost *:8888>
# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
View fedex-test.xml
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/ship/v17">
<SOAP-ENV:Body>
<ns1:ProcessShipmentRequest>
<ns1:WebAuthenticationDetail>
<ns1:ParentCredential>
<ns1:Key>E3naToZ4L9zjveIg</ns1:Key>
<ns1:Password>9wL3VkpHgFtqLpa99eVN33b18</ns1:Password>
</ns1:ParentCredential>
<ns1:UserCredential>
<ns1:Key>E3naToZ4L9zjveIg</ns1:Key>
View fedex_error.php
<?php
array(5) {
["WebAuthenticationDetail"] array(1) {
["UserCredential"] array(2) {
["Key"] "E3naToZ4L9zjveIg"
["Password"] "ifyFeqYnrE3zjbjeT882dSMqS"
}
}
["ClientDetail"] array(2) {
View gist:287916885c39ff2813d0
[
{
"title": "Cada día sabemos más y entendemos menos.",
"author": "Albert Einstein"
}, {
"title": "Hemos averiguado que vivimos en un insignificante planeta de una triste estrella perdida en una galaxia metida en una esquina olvidada de un universo en el que hay muchas más galaxias que personas.",
"author": "Carl Sagan"
}, {
"title": "Si estamos solos en el Universo, seguro sería una terrible pérdida de espacio.",
"author": "Albert Einstein"
View gist:dc46918f7825f250bee3
[
{
name: "Hotel Dante",
stars: 4,
url: "http://www.hoteldante.com",
url_book: "http://www.hoteldante.com/reserva.php", // url de la página de reserva que se ve en el iframe
created: "2009-10-06",
photos: ["http://www.dominio.com/foto1.jpg", "http://www.dominio.com/foto2.jpg", "http://www.dominio.com/foto3.jpg"],
address: "Av. Street 19",
location: [0.94352343543, 0.452352345234],
You can’t perform that action at this time.