Skip to content

Instantly share code, notes, and snippets.

View devloe's full-sized avatar

Juan Pablo Lozano devloe

View GitHub Profile
// Sluggify inputs with name attribute beggining
// with "title". The result is apply to inputs with
// attribute name beggning with "slug"
$(".form-extended").each(function()
{
var self = this;
var slug = $("[name^=slug]", self);
$("[name^=title]", self).on("keydown blur", function(){
[
{
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],
[
{
"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"
<?php
array(5) {
["WebAuthenticationDetail"] array(1) {
["UserCredential"] array(2) {
["Key"] "E3naToZ4L9zjveIg"
["Password"] "ifyFeqYnrE3zjbjeT882dSMqS"
}
}
["ClientDetail"] array(2) {
<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>
ssh://jplozano@192.168.1.90/repository/git/mediktor-web-app
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,
<?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;
}
{"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
<?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();