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 sympy import * | |
""" | |
recibe como parámetro un arreglo de soluciones, | |
las valida y retorna la solución, ignora soluciones con parte imaginaria | |
""" | |
def getSolution(data): | |
sol = None | |
#recorremos cada solucion del arreglo | |
for val in data: |
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
""" | |
recibe como parámetro un arreglo de soluciones, | |
las valida y retorna la solución, retorna None para soluciones con parte imaginaria | |
""" | |
def getSolution(data): | |
sol = None | |
#recorremos cada solucion del arreglo | |
for val in data: | |
val = val.evalf() #evaluamos la solucion, nos deja un numero | |
#validamos que la solucion evaluada sea mayor que 0 y tambien un numero real |
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
instalar sudo apt-get install linux-headers-generic build-essential git | |
git clone https://github.com/lwfinger/rtlwifi_new.git | |
cd rtlwifi_new | |
sudo make install | |
sudo modprobe -rv rtl8723be | |
sudo modprobe -v rtl8723be ant_sel=2 | |
echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
body{ | |
overflow: hidden; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
body{ | |
margin: 0px; |
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
const webpack = require('webpack'); | |
const config = | |
{ | |
entry: | |
{ | |
one: './src/js/app.js', | |
}, | |
output:{ | |
path: __dirname + '/dist/js/', | |
filename: '[name].js' |
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
const webpack = require('webpack'); | |
const config = | |
{ | |
entry:'./src/js/app.js', | |
output:{ | |
path: __dirname + '/dist/js/', | |
filename: 'bundle.js' | |
} | |
} | |
module.exports = config; |
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
import socket | |
import threading | |
import sys | |
import pickle | |
class Cliente(): | |
"""docstring for Cliente""" | |
def __init__(self, host="localhost", port=4000): | |
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
NewerOlder