Skip to content

Instantly share code, notes, and snippets.

View mariogarcia-ar's full-sized avatar
🎯
Focusing

Mario Garcia mariogarcia-ar

🎯
Focusing
  • https://TuCuota.Online
  • Rosario, Santa Fe, Argentina
View GitHub Profile
@mariogarcia-ar
mariogarcia-ar / tutorialDockerCentos7.md
Created July 16, 2018 22:05 — forked from edgardo001/tutorialDockerCentos7.md
Tutorial realizado con Docker en Centos 7

Instalar docker en centos 7

$> sudo yum update -y
$> sudo yum install docker
$> sudo systemctl start docker

para que este disponible cuando se inicia la maquina

$> sudo systemctl enable docker
@mariogarcia-ar
mariogarcia-ar / CentOS7_min_desktop_setup.txt
Created December 18, 2018 02:08 — forked from shaunhess/CentOS7_min_desktop_setup.txt
CentOS7 Minimal Desktop Installation
1. Install CentOS 7 - Minimal
2. yum groupinstall "X Window System"
3. yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
4. unlink /etc/systemd/system/default.target
5. ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
6. reboot
for i in 1 2 3; do
docker-machine create -d virtualbox node-$i
done
eval $(docker-machine env node-1)
docker swarm init \
--advertise-addr $(docker-machine ip node-1)
TOKEN=$(docker swarm join-token -q worker)
for i in 1 2 3; do
docker-machine create -d virtualbox node-$i
done
eval $(docker-machine env node-1)
docker swarm init \
--advertise-addr $(docker-machine ip node-1)
docker swarm join-token -q manager
git clone https://github.com/vfarcic/cloud-provisioning.git
cd cloud-provisioning
scripts/dm-swarm.sh
eval $(docker-machine env swarm-1)
docker node ls
# -*- coding: utf-8 -*-
import numpy as np
def predict(x,theta,theta_0=0):
'''
Funcion de prediccion
x un vector del training example
theta es el vector normal al plano
# -*- coding: utf-8 -*-
import numpy as np
def predict(x,theta,theta_0=None):
'''
Funcion de prediccion
x un vector del training example
theta es el vector normal al plano
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 23 15:07:01 2020
@author: Mario Garcia ([email protected])
"""
# libreria
import numpy as np
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 29 13:28:49 2020
@author: Mario Garcia ([email protected])
"""
# SymPy
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 20 19:05:12 2020
@author: ohroot
"""
import sympy as sp
import numpy as np