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
<?php | |
use \Psr\Http\Message\ServerRequestInterface as Request; | |
use \Psr\Http\Message\ResponseInterface as Response; | |
$app = new \Slim\App; | |
//Obtener todos los clientes |
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
<?php | |
$app->get('/producto', function(Request $request, Response $response){ | |
$consulta = "SELECT * FROM productos ORDER BY id_producto DESC;"; | |
try{ | |
$db = new db(); | |
$db = $db->conectar(); | |
$query = $db->query($consulta);\ |
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
@keyframes spin { | |
from { | |
transform: rotate(0deg); | |
} | |
to { | |
transform: rotate(360deg); | |
} | |
} | |
@-webkit-keyframes spin { |
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
<div class="texto-encabezado text-xs-center"> | |
<div class="container"> | |
<h1 class="display-4 wow bounceIn">{{title}}</h1> | |
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p> | |
</div> | |
</div> | |
<div class="col-md-8 "> | |
<div class="card " [@carduserprofile]> |
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
<div class="texto-encabezado text-xs-center"> | |
<div class="container"> | |
<h1 class="display-4 wow bounceIn">{{title}}</h1> | |
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p> | |
</div> | |
</div> | |
<div class="col-md-8 "> | |
<div class="card " [@carduserprofile]> |
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
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | |
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
getTiendas() { | |
this._tiendaService.getTiendas() | |
.subscribe( | |
result => { | |
this.tiendas = result.data; // se guardara la informacion en el modelo de datos | |
this.status = result.status; | |
if (this.status !== "success") { | |
alert("Error conectando con la api!!!") |
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
1) instalar la memoria SD en un adaptador SD a USB | |
2) insertar el adaptador USB en la pc | |
3) ir a la terminal y escanear los dispositivos conectados, puede ser con el comando 'sudo fdisk -l' o también el comando 'df -h'. | |
Nota: los medios extraíbles salen en la parte final de la lista, como /dev/sd.... | |
4) desmontar la unidad con el comando umount /dev/sd'x' puede variar por la pc es po eso que dejo como variable x | |
5) abrir el gparted con la dirección de la unidad 'sudo gparted /dev/sdx' |
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 armhf/ubuntu:17.04 # se llama la imagen a descagar | |
LABEL Description="XAS Dynamics debian dev" Autor="Alphanet-EX" Version="v0.0.1" #son los metadatos del dockerfile | |
COPY datos /ejemplo # copiar los archivos que estan en la carpeta datos a una carpeta que estara dentro de la imagen de docker | |
ENTRYPOINT cat /ejemplo/texto # cada ves que el docker inicie mostrara el contenido del archivo texto alojado en la carpeta ejemplo de la imagen |
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
https://store.docker.com/profiles/arm32v7 #organizacion oficial para producto armv7 de 32bits | |
#Arrancando un contenedor con un volumen de manera sincrona | |
docker container run --name ejemplo-contenedor -v /home/odroid/ejemplo/datos:/ejemplo -it armhf/ubuntu:17.04 /bin/bash | |
sintaxis | |
docker container run --name ejemplo-contenedor | |
#iniciando un contenedor y asignandole como nombre ejemplo contenedor | |
-v |