Construye una lista que contenga tramos horarios, en intervalos de 30 min. Que empiece a las 8 am y termine a las 8pm O sea un cuadro con un bloque que empiece a las 8, luego 8.30, 9, 9 30.. así hasta las 8pm La empresa tiene disponibilidad de 8 motociclistas cada 30 min Cuando alguien haga click sobre una de estas cajitas debería tomar un recurso de motociclista O sea un contador que empiece en 8 y luego baje a 7, a demás de marcar la caja en verde Si el mismo usuario da click en la misma caja, debe liberar el recurso, si se encontraba en verde, debe liberar el recurso,
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ |
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
drop table Ciudad; | |
drop table Cliente; | |
drop table Color; | |
drop table Compra; | |
drop table Modelo; | |
drop table Automovil; | |
drop table Marca; | |
drop table Revision; | |
drop table Telefono; |
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
/* SQLEditor (SQLServer)*/ | |
CREATE TABLE Cargo | |
( | |
id_cargo INT NOT NULL, | |
nombres_cargo VARCHAR(50) NOT NULL, | |
CONSTRAINT Cargo_pkey PRIMARY KEY (id_cargo) | |
); |
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 lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Validador de RUT HTML5</title> | |
</head> | |
<body> | |
<form> | |
<input type="text" id="rut" name="rut" required oninput="checkRut(this)" placeholder="Ingrese RUT"> | |
<button type="submit">Validar RUT y Enviar Form</button> |
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
// @author Ernesto Muñoz | |
int redPin=9; | |
int greenPin=10; | |
int bluePin=11; | |
int buzzerPin=7; | |
int potPin=1; | |
int sensorPin=0; |
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
import datetime | |
import requests | |
import img2pdf | |
from os import remove | |
hoy = datetime.datetime.now().date() | |
def getFecha(): | |
today = datetime.date.today() |
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
sudo nmap -A testphp.vulnweb.com | |
Starting Nmap 7.80 ( https://nmap.org ) at 2020-06-15 23:55 -04 | |
Nmap scan report for testphp.vulnweb.com (176.28.50.165) | |
Host is up (0.21s latency). | |
rDNS record for 176.28.50.165: rs202995.rs.hosteurope.de | |
Not shown: 986 closed ports | |
PORT STATE SERVICE VERSION | |
21/tcp open ftp ProFTPD 1.3.3e | |
22/tcp open ssh OpenSSH 5.3p1 Debian 3ubuntu7.1 (Ubuntu Linux; protocol 2.0) | |
| ssh-hostkey: |
No debería tomar más de 5 min en hacer estos ejercicios (Puedes usar cronómetro, e ir viendo resultados)
- Multiplicar dos números sin usar el operador de multiplicación
- Obtener el numero mayor en un array iterando solo una vez
- Iterando un arreglo solo una vez, crear función que elimine: undefined, False, 0, ó null
- Escribir función que aplana los arreglos en un nivel (separar arreglos en niveles)
- Escribir función para contar la cantidad de veces que se repite una palabra en array
- Comprobar si una string es palíndromo (palabras o frases)
A cheat-sheet for creating web apps with the Django framework using the Python language. Most of the summaries and examples are based on the official documentation for Django v2.0.
- 🐍 Initializing pipenv (optional)
- 📘 Creating a project
- 📃 Creating an app
- 📺 Creating a view
- 🎨 Creating a template
- 🎫 Creating a model
OlderNewer