Skip to content

Instantly share code, notes, and snippets.

View aditya-524's full-sized avatar
🎯
Focusing on Projects!

Aditya P aditya-524

🎯
Focusing on Projects!
View GitHub Profile
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time
PROMISED_DOWN = # Promised Download Speed
PROMISED_UP = # Promised Upload Speed
CHROME_DRIVER_PATH = # Path of the Chrome Driver
TWITTER_EMAIL = # Bot Email
TWITTER_USER = # Bot Username, Used cause multiple logins
@aditya-524
aditya-524 / RoomShareProject.py
Last active December 9, 2022 06:31
Project to do Web scraping of rates of all Rental Room-share properties near Adelaide, close to my university The Project Web scrapes from website gumtree, takes the rent rates and location and links of the properties. The data is stored in a list then pasted in a google sheet, along with the distance from University to the suburb location.
from bs4 import BeautifulSoup
import requests
from selenium import webdriver
import time
import googlemaps
URL_TO_YOUR_GOOGLE_FORM = #Google Forms Link
GOOGLE_API_KEY = #Google API Key
# TODO 1. Get the roomshare data from Gumtree Website
@aditya-524
aditya-524 / flappy.py
Created August 27, 2023 02:12
Flappy Bird Standalone
# Note : The code is of standalone Flappy bird, and as of this writing there is no human controllable agents in this game,
# cause we want the AI to learn to play the game, and this is an unfinished code.
# The AI Implemenetation walkthrough is after this.
import pygame
import neat
import time
import os
import random
pygame.font.init() # Initialize pygame font
@aditya-524
aditya-524 / config-FeedForward.txt
Created August 27, 2023 07:16
Configuration file for NEAT Algorithm
[NEAT] # -> The Configuration File with all variables and parameters are defined
fitness_criterion = max #-> This is to determine the best birds to select [ Select the birds with highest fitness]
fitness_threshold = 100 #-> Number we need to reach before we terminate the program
pop_size = 20 #-> The number of birds we want in the experiment
reset_on_extinction = False #-> Separates the kind of population into species, and creates random species if they get extinct
[DefaultGenome] #-> All of population members (birds) genome, nodes= neurons and genes = connections,
# node activation options
activation_default = tanh #-> Activation function
activation_mutate_rate = 0.0 #-> to change it randomly