Skip to content

Instantly share code, notes, and snippets.

Avatar

Juan Pablo Lozano devloe

View GitHub Profile
View demo1.js
var css = `
@import url(../../node_modules/selectize/dist/css/selectize.css);html{height:100%}html [type="radio"]:not(:checked),html [type="radio"]:checked{visibility:hidden}html body{background-color:#f6f6f6;height:100%;color:#6f6f6f;font-family:"Open Sans",sans-serif,sans-serif}html .bg-logo-light{background-image:url(img/logo-light-mediktor.png);background-position:center center;background-repeat:no-repeat}html .bg-logo-dark{background-image:url(img/logo-dark-mediktor.png);background-position:center center;background-repeat:no-repeat}html body.colored{background-color:#0471B9 !important}html .master .bar-bg{height:210px;background:#0471B9 !important;box-shadow:0 1px 10px rgba(0,0,0,0.25)}html .main{margin-top:-210px}html .main-content{margin-top:0;min-height:0}html .main-footer{text-align:center;padding:40px 0;color:#888}html .main-footer img{width:120px;height:auto;vertical-align:middle;margin:0 10px}html hr{border:none;border-top:1px solid rgba(0,0,0,0.1);box-shadow:none !important}html hr.spaced{margin:
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) {
You can’t perform that action at this time.