Skip to content

Instantly share code, notes, and snippets.

View londarks's full-sized avatar
⚠️
Functions describe the world

Gabriel londarks

⚠️
Functions describe the world
View GitHub Profile
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'main.ui'
##
## Created by: Qt User Interface Compiler version 6.5.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
@londarks
londarks / main.py
Last active February 25, 2023 04:35
tic-tac-toe with AI
import tensorflow as tf
import numpy as np
# Definindo o modelo da rede neural
model = tf.keras.Sequential([
tf.keras.layers.Dense(9, activation='relu', input_shape=(9,)),
tf.keras.layers.Dense(9, activation='relu'),
tf.keras.layers.Dense(1, activation='sigmoid')
])
@londarks
londarks / Python temp-mail.org Automator
Created May 17, 2022 02:22
Python temp-mail.org Automator
mport requests
import time
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0',
'Accept': 'application/json',
'Accept-Language': 'pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3',
'Origin': 'https://temp-mail.org',
'Connection': 'keep-alive',
'Referer': 'https://temp-mail.org/',