Skip to content

Instantly share code, notes, and snippets.

@4bpb
4bpb / main.py
Last active April 25, 2022 19:28
Project 6 Question
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)
@4bpb
4bpb / main.py
Created April 13, 2022 04:00
MIS 301 Lab 5
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
@4bpb
4bpb / LAB 3
Created March 12, 2022 19:33
MIS 301 LAB 3
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
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"
@4bpb
4bpb / lab1_complete
Last active February 13, 2022 21:16
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):
@4bpb
4bpb / 2captcha auto Deposit
Last active May 29, 2017 09:47
2captcha auto deposit so you can stay cookin during drops 😎
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
@4bpb
4bpb / DSMNY ACCOUNT CREATOR
Created May 26, 2017 00:48
So foe this script it will automatically add +X to your main email to make more accounts on dsmny, the only flaw to this script is selenium and me using randit which inputs numbers at random so there isn't guarantee each run of the script is successful
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
@4bpb
4bpb / All of Adidas U.S. Products
Created May 23, 2017 04:28
This script will parse code to get all of the products on adidas US
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"}
@4bpb
4bpb / gist:6ad78d2957208ed88b8eb20159a04d17
Created May 12, 2017 02:53
Supreme Script with Proxy Integration and Fixed Errors with Billing/Shipping form
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
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: