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
// Los árboles utópicos crecen de una forma particular, en dos ciclos: | |
// Cada primavera duplican su tamaño | |
// Cada verano crecen un metro | |
// Si Laura planta un árbol utópico de un metro, al fin del otoño, ¿cuánto medirá de alto después de N ciclos? | |
// Algunos ejemplos: | |
// Si N = 0, su altura será 1 metro (no creció nada) | |
// Si N = 1, su altura será de 2 metros (duplicó su altura en primavera) | |
// Si N = 2, su altura será de 3 metros (creció un metro más en verano) |
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
#!/bin/bash | |
#AUTHOR: AlphanetEX, APACHE2 + MYSQL CONFIGURATION | |
apache_conf="/etc/apache2/sites-available/" | |
#read .env file it works | |
[ ! -f .env ] || export $(grep -v '^#' .env | xargs) | |
if [[ ! -d /u01 ]]; then | |
mkdir /u01 | |
fi |
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
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
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
#!/bin/bash | |
unset kernel_data[6] | |
unset tegra_version[3] | |
unset cpu_verstion | |
Green='\033[0;32m' | |
Red='\033[0;31m' | |
Blue='\033[0;34m' |
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
dec=97 | |
counter=0 | |
counter_disk=0 | |
cant=0 | |
read -p "Cantidad de discos a Formatear ?: " cant | |
while [ $counter -lt $cant ] | |
do |
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
#!/bin/bash | |
receptor=$1 | |
echo $receptor | |
fdisk_lvm_cmd="n | |
p | |
1 | |
#\n | |
#\n |
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
def pair(): | |
numbers = [15,74,110,9,8,1,0,14,78,13,150,4] | |
counter = 0 | |
acumulator = 0 | |
while counter <= len(numbers) -1: | |
if numbers[counter] % 2 == 0: | |
acumulator += numbers[counter] | |
counter += +1 | |
return str(acumulator) |
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
def numbers(): | |
counter = 0 | |
acumulator = 0 | |
while counter < 10: | |
number = float(input("igrese el {} numero: ".format(counter+1))) | |
acumulator += number | |
counter += +1 | |
return acumulator / counter |
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
def discount(price, result): | |
if result == 0: | |
return price - (price * 0.1) | |
elif result == 1: | |
return price - (price * 0.05) | |
else: | |
return price + (price * 0.15) | |
result = int(input(" pagar: \nefectivo: 0\ndebito: 1\ncredito: 2 (monto adicional del 15%)\n: ")) | |
price = float(input("ingrese el precio del producto: ")) |
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
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 |