View ContactosModel.php
<?php | |
class ContactosModel | |
{ | |
private static function obtenerBaseDeDatos() | |
{ | |
$host = "127.0.0.1"; | |
$puerto = "27017"; | |
$usuario = rawurlencode("parzibyte"); | |
$pass = rawurlencode("hunter2"); | |
$nombreBD = "agenda"; |
View créditos.txt
____ _____ _ _ _ | |
| _ \ | __ \ (_) | | | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | |
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ | |
|____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| | |
__/ | __/ | | |
|___/ |___/ | |
____________________________________ |
View fechas.js
const nombreDelDiaSegunFecha = fecha => [ | |
'domingo', | |
'lunes', | |
'martes', | |
'miércoles', | |
'jueves', | |
'viernes', | |
'sábado', | |
][new Date(fecha).getDay()]; |
View nombreDelDia.js
const nombreDelDiaSegunFecha = fecha => { | |
return [ | |
'domingo', | |
'lunes', | |
'martes', | |
'miércoles', | |
'jueves', | |
'viernes', | |
'sábado', | |
][new Date(fecha).getDay()]; |
View nombre_día.js
const fechaComoCadena = "2020-03-09 23:37:22"; // día lunes | |
const dias = [ | |
'domingo', | |
'lunes', | |
'martes', | |
'miércoles', | |
'jueves', | |
'viernes', | |
'sábado', | |
]; |
View existe.py
lista = [1, 50, 30] | |
if 50 in lista: # Imprime lo de abajo | |
print("El número 50 existe en la lista") | |
otra_lista = ["perro", "gato", "conejo"] | |
if "caballo" in otra_lista: #No imprime nada | |
print("caballo existe dentro de otra_lista") |
View index.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Escuchar click de botón</title> | |
<link href="style.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<button id="miBoton">Haz click sobre mí :)</button> |
View middleware.js
app.use((req, res, next) => { | |
res.set("Access-Control-Allow-Credentials", "true"); | |
res.set("Access-Control-Allow-Origin", "http://tu_dominio.com"); | |
res.set("Access-Control-Allow-Headers", "Content-Type"); | |
res.set("Access-Control-Allow-Methods", "OPTIONS,GET,PUT,POST,DELETE"); | |
next(); | |
}); |
View tabla_correcta.html
<div class="table-container"> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>Nombre</th> | |
<th>Edad</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
View tabla_incorrecta.html
<div class="columns"> | |
<div class="column"> | |
<div class="table-container"> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>Nombre</th> | |
<th>Edad</th> | |
</tr> | |
</thead> |
NewerOlder