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
#def functions for operations | |
def sumar(operando1, operando2): | |
return (operando1 + operando2) | |
def multiplicar(operando1, operando2): | |
return operando1 * operando2 | |
def dividir(operando1, operando2): | |
try: | |
if operando2 != 0: | |
return operando1 / operando2 | |
elif operando2 == 0: |
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
cF = 0 | |
cC = 0 | |
while cF < 5: | |
while cC < cF: | |
print("*", end="") | |
cC += 1 | |
cF += 1 | |
cC = 0 | |
print() |
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
#list can be asked by the user but for testitn propouses and rush I leave it as hard code | |
lists = [54,26,93,17,77,31,44,55,20] | |
n = len(lists) | |
for j in range(n): | |
for i in range(n-1): | |
liststmp = lists[i] | |
if lists[i] > lists[i+1]: | |
lists[i] = lists[i+1] | |
lists[i+1] = liststmp |
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
!! Colorscheme | |
! special | |
*.foreground: #93a1a1 | |
*.background: #141c21 | |
*.cursorColor: #afbfbf | |
! black | |
*.color0: #263640 | |
*.color8: #4a697d |
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
# This tells kubecfg to read its config from the local directory | |
export KUBECONFIG=./kubeconfig | |
# Looking at the cluster | |
kubectl get nodes | |
kubectl get pods --namespace=kube-system | |
# Running a single pod | |
kubectl run --generator=run-pod/v1 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard | |
kubectl get pods |
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
docker pull jupyter/notebook | |
docker run --rm -it -p 8888:8888 -v ~/notebooks:/home/jovyan jupyter/scipy-notebook | |
#Loign token | |
http://(77ac7f6b4059 or 127.0.0.1):8888/?token=cf05cf1f97423bbe47f9e7ec08fb6875ab09 |
NewerOlder