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
const request = require('request'); | |
const fs = require('fs'); | |
const formData = { | |
w: 'fileUploader', | |
r: 'subir_certif', | |
sessionKey: 'jkasdutsvafu76arfs7d5c7v', | |
iam : 'nvm2391', | |
my_file: fs.createReadStream('/ruta/test.p12'), | |
}; |
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 template = '<div><span> <%= nombre %> </span><p><%= descripcion %></p><h4><%= precio %></h4><img src="<%= imagen %>"/></div>'; | |
var compiled = _.template(template); | |
function createExperience(data) { | |
return compiled(data); | |
} | |
var xhr = $.ajax({ | |
url: "http://52.26.247.55:8080/EWS/web/kit", | |
method: "GET", |
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 xhr = $.ajax({ | |
url: "http://52.26.247.55:8080/EWS/web/kit", | |
method: "GET", | |
}).done(function(respuesta) { | |
var experiencia = respuesta.data[0]; | |
console.log( "Experiencia: ", experiencia ); | |
var nombre = experiencia.attributes.kit; | |
var descripcion = experiencia.attributes.descripcion; | |
var precio = '$' + experiencia.attributes.precio; | |
var imagen = experiencia.attributes.imagen; |
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
{ | |
"name": "Lolita", | |
"description": "La rescatamos cuando estaba en celo, siendo acosada por muchos perros.Ahora esta castrada,pasando su post operatorio en un hogar provisorio.", | |
"gender": "female", | |
"age": { | |
"number": 1, | |
"type": "months" | |
}, | |
"size": "xs", | |
"energy": 4, |
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 irving = { | |
nombre : 'Irving', | |
edad : 250 | |
}; | |
var javier = { | |
nombre : 'Javier', | |
edad : 50 | |
}; |
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 n = prompt('Ingresa el año', 'Año'); | |
n = Number(n); | |
console.log('El año es: ' + n); | |
//for (var i=1; i<=n; i++) { | |
var i=1; | |
do { | |
if ( ( (i % 4 === 0) && (i % 100 !== 0) ) || ( i % 400 === 0)) { | |
//Si es |
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> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Tic tac toe</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/main.css"> | |
<link rel="stylesheet" href="css/buttons.css"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
</head> |
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 mensajes = [ | |
{ | |
mensaje : 'Hola mundo', | |
persona : 'Jose Lopez', | |
}, | |
{ | |
mensaje : 'Hola', | |
persona : 'Andra Lamas' | |
}, |
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
#container { | |
width: 800px; | |
height: 600px; | |
position: relative; | |
} | |
.tamano { | |
width: 100%; | |
height: 100%; | |
position: absolute; |
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 originales = ['Frase 1', 'Frase 2', 'Frase 3', 'Frase 4']; | |
var frases = ['Frase 1', 'Frase 2', 'Frase 3', 'Frase 4']; | |
var generarAleatorio = function() { | |
var num = Math.random() * (frases.length); | |
return Math.floor(num); | |
} | |
NewerOlder