Skip to content

Instantly share code, notes, and snippets.

View noti0nS's full-sized avatar
🎯
Focusing

Lucas noti0nS

🎯
Focusing
View GitHub Profile
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:transparent_image/transparent_image.dart';
import '../shared/const/image_api.dart';
import '../shared/repositories/get_image.dart';
import '../widgets/search_bar/search_bar.dart';
import 'home_controller.dart';
// Todo código foi feito por josé lucas da silva.
#include <iostream>
#include <cmath>
struct point2D
{
double x;
double y;
};
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:flutter_modular/flutter_modular.dart';
import '../../shared/widgets/profile_button/profile_button.dart';
import '../../shared/widgets/repository_card/repository_card.dart';
import 'home_controller.dart';
class HomePage extends StatefulWidget {
@override
import os
def trocar(arquivo):
if ' ' in arquivo:
new_file = arquivo.replace(' ', '-')
os.rename(arquivo, new_file)
return new_file
return arquivo
@noti0nS
noti0nS / perceptron.py
Last active December 29, 2019 15:31
Perceptron de uma camada implementado em Python 3
import random
class Perceptron:
def __init__(self, limiar, parada, taxa_aprendizado = 0.1):
self.pesos = []
self.limiar = limiar
self.parada = parada
self.taxa_aprendizado = taxa_aprendizado
Building wheel for pillow (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/lucas/Documents/programacao/gerador-provas/venv/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1dogez7b/pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1dogez7b/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-s9_73yr7 --python-tag cp38
cwd: /tmp/pip-install-1dogez7b/pillow/
Complete output (172 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
<!DOCTYPE html>
<html lang="pt-br" >
<head>
<meta charset="UTF-8">
<title>Formulário de Login</title>
<link rel="stylesheet" href="{{ url_for('static',
filename="css/style.css") }}">
</head>
import sqlite3
def create_table():
c.execute('create table IF NOT EXISTS dados(id INTEGER PRIMARY KEY AUTOINCREMENT,\
nome text,\
data_nascimento text,\
email text,\
senha text)')
def read_data():
n = int(input())
n1 = int(input())
n2 = int(input())
n3 = n - (n1 + n2)
if n1 > n2 and n1 > n3:
print(n1)
elif n2 > n1 and n2 > n3:
print(n2)
def fatorial(n):
fat = 1
for i in range(n):
fat *= (n - i)
return fat
def decremento(n):
newNumber = ""