View ejer_01.py
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
counter = 0 | |
numbers = [0 , 0 , 0] | |
while counter < 3: | |
numbers[counter]= float(input('insert the {} number: '.format(counter +1))) | |
counter +=1 | |
print('the highest number is : ', max(numbers)) | |
# OTHER LOGIC IF YOUR NOT PERMIT USE MAX FUNCTION |
View ejer_02.py
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
acumulator = 0 | |
module_3 = 0 | |
while acumulator <= 500: | |
number = float(input('insert any number: ')) | |
if number % 3 == 0.0: | |
module_3 += number | |
else: | |
pass | |
acumulator += number; |
View login.component.html
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
<!--area de registro y de atencion --> | |
<div> | |
<div class="col-lg-6"> | |
<div class="alert alert-success" *ngIf="status_backend =='success'"> bienvenido | |
</div> | |
<div class="alert alert-danger" *ngIf="status_backend == 'failed'"> No es posible iniciar secion |
View registrer.component.html
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
<section id="contact"> | |
<div class="section-contact"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 offset-md-2"> | |
<h2><span class="bold-orange">Registrate</span></h2> | |
<form #registerForm="ngForm" (ngSubmit)="onSubmit()" class="form-horizontal"> | |
<div class="form-group"> | |
<label for="name" class="col-sm-2 control-label">Usuario</label> | |
<div class="col-sm-10"> |
View angular.component.ts
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
1) create the service name.service.ts | |
2) sintaxis on de service | |
/* | |
@Injectable() lets Angular know that a class can be used with the dependency injector. | |
@Injectable() is not strictly required if the class has other Angular decorators on it or does not have any dependencies. | |
*/ | |
import {Injectable} from "@angular/core"; | |
@Injectable() |
View Dockerfile.xas.sh
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
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 |
View Dockerfile
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
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 |
View Guidande Flash SD && eMMC.txt
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
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' |
View vtrrobles.ts
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
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!!!") |
View lorem ipsum.txt
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
"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." | |