Skip to content

Instantly share code, notes, and snippets.

View lucassm's full-sized avatar
💭
Eletric Power systems, Python and IT

Lucas Melo lucassm

💭
Eletric Power systems, Python and IT
View GitHub Profile
@lucassm
lucassm / client_tcp.py
Last active September 20, 2023 12:58
Exemplos em Python de clientes e servidores TCP e UDP
"""simple TCP client."""
import socket
server_name = 'localhost'
server_port = 12000
client_socket = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
client_socket.connect((server_name, server_port))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucassm
lucassm / RESOLUCAO_3_5.ipynb
Created March 27, 2018 18:30
Resolucao da questão 3.5 do livro Distribution System Modeling and Analysis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucassm
lucassm / trabalho_01.md
Created April 11, 2017 02:19
Trabalho 01

Atividade 01 da disciplina de Engenharia de Software e Sistemas Multiagentes Aplicados a Redes Elétricas

Como atividade 01 de nossa disciplina foram designadas as tarefas:

Introdução a UML

Realizar a leitura do texto:

Analise e projeto UML: Esse texto dá uma visão geral a respeito da modelagem de software utilizando a linguagem gráfica UML, muitos dos conceitos gerais e básicos para se compreender a linguagem são encontrados neste texto.

@lucassm
lucassm / atividade_01.html
Created April 11, 2017 02:14
Trabalho 01 da disciplina de Engenharia de Software e Sistemas Multiagentes
<!DOCTYPE html><html><head><meta charset="utf-8"><style>body {
width: 45em;
border: 1px solid #ddd;
outline: 1300px solid #fff;
margin: 16px auto;
}
body .markdown-body
{
padding: 30px;
##### Install a lot of stuff first #####
$sudo apt-get update
##install python
$ wget http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.0.1-Linux-x86_64.sh
$ sudo bash anaconda........sh
##install necessary libs
$ sudo apt-get install python-matplotlib python-tornado ipython ipython-notebook python-setuptools python-pip
# Copyright (c) 2011, Eng Eder de Souza
# ___ _ _ ___
# | __|__| |___ _ _ __| |___ / __| ___ _ _ _____ _
# | _|/ _` / -_) '_| / _` / -_) \__ \/ _ \ || |_ / _` |
# |___\__,_\___|_| \__,_\___| |___/\___/\_,_/__\__,_|
#Accessing the Google API for speech recognition!
#Open a file type Wav to speech recognition
#This source does not require any external programs to perform audio conversions :-)
#http://ederwander.wordpress.com/2011/11/06/accessing-the-google-speech-api-python/
#Eng Eder de Souza