This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| df = pd.read_csv('./review_phx_hw.csv') | |
| df = df.fillna(value=-9999) | |
| df['postal_code'] = df['postal_code'].astype(int) | |
| df['postal_code'] = df['postal_code'].astype(str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from DrawingPanel import * | |
| import math | |
| def clean(array): # This function just cleans the array to take out any \n | |
| for i in range(len(array)): | |
| if array[i] == '\n': | |
| array.pop(i) | |
| questionanswers = open("./questionanswers.txt") #open the file questionanswers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| try: # checks for int or str | |
| tokens = int(input("Enter the number of tokens you are starting with: ")) # Ask for token amount | |
| except ValueError: # errors and exits if not a valid int | |
| print('Please enter a valid integer!') | |
| quit() | |
| print('Tokens = ',tokens) # show the user how many tokens |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| from DrawingPanel import * | |
| import random | |
| locations = 25 | |
| panel_width = 1920/2 | |
| panel_height = 1080/2 | |
| colors = "Red", "orange", "yellow", "green", "blue", "violet" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(): | |
| SIZE = 5 # 3,4,5 | |
| # First block given to us | |
| print(" " * (SIZE * 4) + "X" * (SIZE * 6 + 1)) | |
| print(" " * (SIZE * 4) + "X" * (SIZE * 6 + 1)) | |
| print(" " * (SIZE * 4) + "X" * SIZE + " " * (SIZE * 4+1) + "X" * SIZE) | |
| print(" " * (SIZE * 4) + "X" * (SIZE * 3) + " " + "X" * (SIZE* 3)) | |
| print(" " * (SIZE * 4) + "X" * (SIZE * 3 - 1) + " " + "X" * (SIZE * 3 - 1)) | |
| # first for loop given to us | |
| for i in range (3): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| import pickle | |
| import datetime | |
| from selenium.webdriver.common.keys import Keys | |
| ################################################ | |
| def getCurrentTime(): | |
| return time.strftime("%H:%M:%S") | |
| ################################################ | |
| EMail = ''#email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| from random import randint | |
| driver = webdriver.Chrome() | |
| ######################################Setup | |
| first = 'ENTERHERE' | |
| last = 'ENTERHERE' | |
| password = 'ENTERHERE' | |
| email = 'ENTERHERE','+' | |
| gmail = '@gmail.com'#leave this alone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| import urllib.request | |
| import re | |
| import urllib.parse | |
| import time | |
| headers = {"User-Agent" : "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36", | |
| "Accept-Language" : "en-US,en;q=0.8"} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| import pickle | |
| #Proxy Setup | |
| IP = 'EnterHERE'#Enter Proxy Here | |
| ################################## | |
| chrome_options = webdriver.ChromeOptions() | |
| chrome_options.add_argument('--proxy-server='+IP) | |
| driver = webdriver.Chrome(chrome_options=chrome_options) | |
| #mdae by turtl aka @snupreme and help of the god simmy @backdoorcook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| import time | |
| import pickle | |
| driver = webdriver.Chrome() | |
| #mdae by turtl aka @snupreme and help of the god simmy @backdoorcook | |
| #waitillclick | |
| driver.get("http://www.supremenewyork.com/shop/new")#or any genre page of clothing | |
| #size | |
| #Start infinite Loop, | |
| while True: |
NewerOlder