This file contains hidden or 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
FROM python:3.9-slim AS base | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONFAULTHANDLER 1 | |
FROM base AS builder | |
COPY Pipfile Pipfile.lock ./ | |
RUN python -m pip install --upgrade pip |
This file contains hidden or 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 lang="es"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<link | |
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | |
rel="stylesheet" | |
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" |
This file contains hidden or 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 lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Japflix</title> | |
> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
This file contains hidden or 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 MOVIES_URL = "https://japceibal.github.io/japflix_api/movies-data.json"; | |
async function getData() { | |
const response = await fetch(MOVIES_URL); | |
return response.json(); | |
} | |
const datos = getData(); | |
document.addEventListener("DOMContentLoaded", async () => { | |
const input = document.querySelector("#inputBuscar"); |
This file contains hidden or 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 limite = 20000; | |
function isPrime(num) { | |
let prime = true; | |
for (let i = 2; i < (num/2 + 1); i++) | |
if (num % i === 0) { | |
prime = false; | |
break; | |
} |
This file contains hidden or 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 lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Buscador de imágenes de la NASA</title> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="css/style.css"> |
This file contains hidden or 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
document.addEventListener('DOMContentLoaded', () => { | |
const btnAgregar = document.querySelector('#agregar'); | |
const lista = document.querySelector('#contenedor'); | |
const titulo = document.querySelector('#titulo'); | |
const grupoTitulo = document.querySelector('.needs-validation'); | |
const descripcion = document.querySelector('#descripcion'); | |
let listado = window.localStorage.getItem('lista'); | |
listado = JSON.parse(listado) |
This file contains hidden or 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
document.addEventListener('DOMContentLoaded', () => { | |
const input = document.querySelector('#item'); | |
const btnAgregar = document.querySelector('#agregar'); | |
const btnTitulo = document.querySelector('#titulo'); | |
const btnSeparador = document.querySelector('#separador'); | |
const btnLimpiar = document.querySelector('#limpiar'); | |
const lista = document.querySelector('#contenedor'); | |
let listado = window.localStorage.getItem('lista'); | |
listado = JSON.parse(listado) |
This file contains hidden or 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
window.addEventListener('DOMContentLoaded', () => { | |
const container = document.querySelector(".board"); | |
for(let i = 0; i <= 63; i++) { | |
const cell = document.createElement("div"); | |
const index = Math.floor(i + i/8); // numero de celda + numero de fila | |
cell.classList.add(isEven(index) ? "white" : "black"); | |
container.append(cell); | |
} |
This file contains hidden or 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
window.addEventListener('DOMContentLoaded', () => { | |
const container = document.querySelector(".board"); | |
for(let i = 0; i <= 63; i++) { | |
const cell = document.createElement("div"); | |
const index = Math.floor(i + i/8); // numero de celda + numero de fila | |
cell.classList.add(isEven(index) ? "white" : "black"); | |
container.append(cell); | |
} |