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
//Las relaciones left y right son permitidas. Normalmente no tendremos que tocar el ON | |
//No obstante : | |
//si tenemos condiciones adicionales del on del join, se ponen como 3er parametro | |
//de relación. La relación primaria de las tablas no hay que ponerla, porque ya la pone | |
//el framework | |
/* | |
select distinct U.id, T.clase, T.estado1 as leido | |
from usuarios U |
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
$meses = ["","Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"]; | |
$fecha = new Fecha($this->datos->fecha); | |
$attr["fecha"] = "{$fecha->vdia} de {$meses[$fecha->vmes]}"; |
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
Teléfono de soporte | |
=================== | |
(0) 948 82 15 35 | |
Emails de soporte | |
=================== | |
aprieto@tudela.uned.es | |
soportetecnico@tudela.uned.es | |
Para llamar fuera |
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
let numbers = [1, 5, 10, 15]; | |
let doubles = numbers.map( x => x * 2); | |
//el original no se altera | |
//tambien se le puede pasar una funcion por parametro como referencia, obviamente | |
let raices= numbers.map(Math.sqrt); |
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
//La funcion redirige() JS acepta como parametro la url a partir del /, es decir, | |
//si por ejemplo queremos ir a: | |
//http://aprieto_web_salud.quid.es/indice | |
//sera suficiente con hacer: | |
redirige("/indice"); | |
//o incluso |
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
Agregar profesor en moodle: | |
=========================== | |
Se matricula, de la forma normal, como si fuese un alumno, y ahí hay un botón desplegable | |
que indica el rol | |
Otra forma para agregar profesore a moodle: | |
=========================================== |
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
La dirección de correo de soporte: | |
**soportetecnico@tudela.uned.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
Te metes en el menu superior de Mis Sitios-> administrador de red-> sitios, y | |
en el listado, miras la url del enlace del blog en si, ahí aparece un numerito |
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
for (let value of iterable) { | |
console.log(value); | |
} |
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
//Permite obtener un subset de un array con los elementos que cumplen con una | |
//condición, por ejemplo los impares: | |
var filtrado = [1,2,3,4,5,6,7,8].filter( x => x % 2 ); //[1, 3, 5, 7] |
OlderNewer