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
<?php | |
$bd = new mysqli("localhost","root","andrey15","agenda"); | |
if($bd->connect_errno){ | |
echo "Error en la conexion.."; | |
}else{ | |
echo "Conexion exitosa...<br>"; | |
echo $bd->host_info; | |
} | |
/* //para registrar datos.... |
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
git add . | |
git commit -m "comentario" | |
//El git pull para bajar cambios | |
git pull origin master | |
------------------------------ | |
//El git push para enviar | |
git push origin master |
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
# -*- coding: utf-8 -*- | |
print "area del rectangulo" | |
b = int(raw_input("base")) | |
h = int(raw_input("altura")) | |
c = b * h |
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
# -*- coding: utf-8 -*- | |
print "la suma de dos numeros" | |
a = int(raw_input("numero")) | |
b = int(raw_input("numero")) | |
c = a + b | |
print "la suma es %s" % c |
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
# -*- coding: utf-8 -*- | |
print "volumen del cubo" | |
t = int(raw_input("arista:")) | |
a = 6 * (t)**2 | |
print "el volumen es %s" % a |
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
# -*- coding: utf-8 -*- | |
print "area del circulo" | |
r = int(raw_input("radio")) | |
a = 3.14*(r)**2 | |
print "El area del circulo es %f " % a |
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
# Lista de comandos usados en #PlatziTerm | |
_Work in progress_ | |
## Conceptos | |
- **PROMPT**: Donde se encuentra el cursor, un lugar en el árbol de nodos que es la representación del disco duro en el sistema operativo | |
## Comandos (y algunas banderas) | |
- `ls`: lista los contenidos de un directorio |
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
<table id="tableRegistros" style="display: none;"> | |
<thead> | |
<tr> | |
<th>Código</th> | |
<th>Dirección</th> | |
<th>Tipo de suscripción</th> | |
<th>Deuda total</th> | |
<th>N° de atrasos</th> | |
</tr> | |
</thead> |
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 base = 5; | |
let height = 10; | |
// Escapando concatenacion con comillas nueva formas de concatenar contenido | |
// console.log(`Hola mundo ${base * height / 2}`); | |
// Funcion normal Forma #1 | |
// function areaTriangulo(base, height){ | |
// return base * height / 2; | |
// } |
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 varTest() { | |
var x = 31; | |
if (true) { | |
var x = 71; // misma variable! | |
console.log(x); // 71 | |
} | |
console.log(x); // 71 | |
} | |
function letTest() { |
OlderNewer