Skip to content

Instantly share code, notes, and snippets.

View GuilhermeGSousa's full-sized avatar

Guilherme Sousa GuilhermeGSousa

View GitHub Profile
@GuilhermeGSousa
GuilhermeGSousa / clicker.py
Last active August 26, 2019 19:50
Mouse Clicker
# Original code found here https://nitratine.net/blog/post/python-auto-clicker/
#
# To run:
# Install python: https://www.python.org/downloads/
# On command line:
# pip install pynput
# python <dir-path>/clicker.py
#
# Press s key to start/stop
# Press e to exit
@GuilhermeGSousa
GuilhermeGSousa / cartpole_demo.py
Created June 19, 2018 20:13
Implementention of a DQN to solve the Cartpole environment
import time
import random
import gym
import math
import numpy as np
from collections import deque
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam