Skip to content

Instantly share code, notes, and snippets.

View sujyrokimora's full-sized avatar
🦜
Eu odeio python

Xavier Cruz sujyrokimora

🦜
Eu odeio python
  • Portugal
  • 19:01 (UTC)
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Search ]
"ConnectedSearchUseWebOverMeteredConnections"=dword:00000000
"AllowCortana"=dword:00000000
"DisableWebSearch"=dword:00000001
"ConnectedSearchUseWeb"=dword:00000000
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search]
"CortanaConsent"=dword:00000000
CREATE TABLE DimPeriod (
ID_Period INT PRIMARY KEY,
Year_P INT NOT NULL,
Month_P INT NOT NULL,
Day_P INT NOT NULL,
Trimester INT NOT NULL
);
CREATE TABLE DimAnimal (
ID_Animal INT PRIMARY KEY,
CREATE TABLE Animal (
ID_Animal INT PRIMARY KEY,
Animal_Type VARCHAR(50) NOT NULL,
Breed VARCHAR(50) NOT NULL,
Age INT NOT NULL,
Weigth DECIMAL(10, 2) NOT NULL,
Gender VARCHAR(10) NOT NULL
);
CREATE TABLE Auction (
@sujyrokimora
sujyrokimora / farao_completo.py
Created October 3, 2024 17:47
Codigo de LP 03-10-2024
def f(x):
a=2.0
b=3.0
c=4.0
return a*x**2+b*x+c
def ff(f,a,b,N):
dx= (b-a)/N
for i in range(N):
y=f(a+i*dx)*dx
def f(x):
a=2.0
b=3.0
c=4.0
return a*x**2+b*x+c
def area(f,a,b,N=100):
soma=0.0
dx=(b-a)/N
import time
import numpy as np
def calc(a1, b1, c1, d1, a2, b2, c2, d2, a3, b3, c3, d3):
"""
Representa um sistema de equações lineares com três incógnitas através de listas.
Args:
import time
from turtledemo.penrose import start
num1 = 0
num2 = 1
next_number = num2
def fibonacci(n):
global next_number, num2, num1
import time
def fibonacci(n):
"""
Calculates fibonnaci sequence numbers recursively
"""
if n == 0:
return 0