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
function problem1(y) { | |
var mutiples = []; // Por si necesitamos mantener los numeros en un array | |
var adding = 0; | |
for (var number = 1; number < y; number++) { | |
if (number % 3 === 0 || number % 5 === 0) { | |
adding += number; | |
mutiples.push(number); | |
} | |
} | |
return adding; |
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
#include <iostream> | |
#include <fstream> // para ficheros | |
#include <string.h> | |
#include <vector> | |
#include <regex> | |
using namespace std; | |
void lectura_datos(){ | |
cout<<"Project: "<<endl; |
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
// A x B | |
const matrix = [["25027M67","25023M67","25021M67","27015M67","29012M66","32012M67"], | |
["26035M68","26033M67","26031M67","27031M68","28027M67","29027M66"], | |
["26052M67","25058M67","26056M67","27060M67","28056M66","29048M66"], | |
["26083M68","26079M67","26068M65","27060M63","29068M62","29071M62"], | |
["27068M66","26066M65","26056M64","27048M62","29054M62","28064M61"]] | |
const topMax = ["0600W", "0550W", "0500W", "0450W", "0400W", "0350W"] |
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
// A x B | |
const matrix = [["25027M67","25023M67","25021M67","27015M67","29012M66","32012M67"], | |
["26035M68","26033M67","26031M67","27031M68","28027M67","29027M66"], | |
["26052M67","25058M67","26056M67","27060M67","28056M66","29048M66"], | |
["26083M68","26079M67","26068M65","27060M63","29068M62","29071M62"], | |
["27068M66","26066M65","26056M64","27048M62","29054M62","28064M61"]] | |
const topMax = ["0600W", "0550W", "0500W", "0450W", "0400W", "0350W"] |
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> | |
<title>Bookmarklet</title> | |
</head> | |
<body> | |
<h1>First Class</h1> | |
<iframe src=""></iframe> | |
<a href="javascript:(function () { const iframe = document.createElement('iframe'); iframe.style.cssText = 'position:absolute;top:0;left:0;width: 100vw;height:80vh;z-index:99999;overflow: hidden;background:#151414'; iframe.src = 'https://player.vimeo.com/video/197230029?api=1&player_id=player1&autoplay=true'; iframe.setAttribute('frameBorder', '0'); iframe.setAttribute('scrolling', 'no'); document.body.innerHTML= ''; document.body.setAttribute('style', 'display:block !important;background: #151414'); document.body.appendChild(iframe); })();">Hello!~!</a> | |
</body> |
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
// 1 | |
(function () { | |
const iframe = document.createElement('iframe'); | |
iframe.style.cssText = 'position:absolute;top:0;left:0;width: 100vw;height:80vh;z-index:99999;overflow: hidden;background:#151414'; | |
iframe.src = 'https://player.vimeo.com/video/197230029?api=1&player_id=player1&autoplay=true'; | |
iframe.setAttribute('frameBorder', '0'); | |
iframe.setAttribute('scrolling', 'no'); | |
document.body.innerHTML= ''; | |
document.body.setAttribute('style', 'display:block !important;background: #151414'); |
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
<!-- | |
*1. Hacer un HTML con 6 botones | |
*2. El primer boton va cambiar el color de fondo de la pagina. | |
*3. El segundo boton va insertar una imagen en cualquier lugar de la pagina. | |
*4. El tercer boton va volver la imagen redonda. | |
*5. El cuarto boton va insertar un texto de una frase que te guste. | |
*6. El quinto boton va añadir estilos al texto para que se vea mejor. | |
*7. El sexto boton va reemplazar el texto por otra frase. | |
*8. Añadir funcionalidad al darle click a la imagen que esta aumente su | |
tamaño 15% con cada click. |
RETO 2
const semaforo = {
"colors": {
"green": {
"active": true
},
"yellow": {
"active": false
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
{ | |
"movies": [ | |
{ | |
"title": "Diner", | |
"cast": [ | |
"Steve Guttenberg", | |
"Daniel Stern", | |
"Mickey Rourke", | |
"Kevin Bacon", | |
"Tim Daly", |
OlderNewer