Skip to content

Instantly share code, notes, and snippets.

View andreylh's full-sized avatar

Andrey Lucas Herchonvicz andreylh

View GitHub Profile
def sigmoid(x):
return 1/(1+np.exp(-x))
def backprop(x):
return x * (1-x)
np.random.seed(10)
x = np.array([[1,0,1,0],[0,0,1,0],[1,0,0,1],[0,0,0,1]])
y = np.array([[1,0,1,0]]).T
Curso do A Cloud Guru
Testes do Whizlabs
FAQs (https://aws.amazon.com/pt/faqs/)
- Serverless: Lambda, API Gateway, DynamoDB, ElastiCache, S3
- Dev Tools: CodeCommit, CodePipeline, CodeDeploy, CodeBuild
- Security: IAM, Cognito, KMS
- Automation and Monitoring: Elastic Beanstalk, CloudFormation, CloudWatch, X-Ray
- Containers: ECS, ECR
@andreylh
andreylh / sa.py
Last active August 27, 2019 10:29
class SuffixAutomaton:
def __init__(self):
self.states = []
self.link = []
self.length = []
def build(self, string):
# Cria o estado inicial do automata
self.states.append({})
@andreylh
andreylh / plot.r
Created November 17, 2018 21:10
Code automatically generated with jfuzzylite 6.0
#Code automatically generated with jfuzzylite 6.0.
library(ggplot2);
engine.name = "Proximity"
engine.fll = "Engine: Proximity
InputVariable: signal
enabled: true
range: 30,000 120,000
lock-range: true
import math
class JaroWinkler:
def jaro_winkler(self, d, r):
len_d = len(d)
len_r = len(r)
p = math.floor(max(len_d, len_r) / 2) - 1