Skip to content

Instantly share code, notes, and snippets.

View Matheus1714's full-sized avatar
🏠
Working from home

Matheus Mota Matheus1714

🏠
Working from home
View GitHub Profile
<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"><!--[if mso]><xml><o:OfficeDocumentSettings><o:PixelsPerInch>96</o:PixelsPerInch><o:AllowPNG/></o:OfficeDocumentSettings></xml><![endif]--><!--[if !mso]><!--><!--<![endif]-->
<style>
* {
box-sizing: border-box;
const SHEET_ID_WITH_NAME_AND_EMAIL = 'YOUR_ID_HERE'
/**
* Função para obter nomes e emails de uma planilha específica.
*
* @param {string} sheetId
* @return {Array<{ name: string, email: string }>}
*/
function getNameAndEmail(sheetId) {
const spreadsheet = SpreadsheetApp.openById(sheetId);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Matheus1714
Matheus1714 / perceptron_clf.py
Last active March 16, 2021 19:29
Código de classificação usando perceptron.
from random import random
from sklearn.preprocessing import MinMaxScaler
from sklearn.datasets.samples_generator import make_blobs
# Inicializar variáveis x e y
x, y = make_blobs(n_samples=100, n_features=2, centers=2, random_state=1234)
# Regularizar x para o intervalo entre -1 e 1
minmax = MinMaxScaler(feature_range=(-1, 1))
x = minmax.fit_transform(x.astype(np.float64))
@Matheus1714
Matheus1714 / fib.py
Created July 31, 2020 04:48
Termos de fibonacci usando mpi4py
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
MEMO = [1,1]
def fib(n):
if(n==0 or n==1): return 1
MEMO.append(fib(n-1)+MEMO[n-2])