Skip to content

Instantly share code, notes, and snippets.

@Schizo
Schizo / listOfRandomNames.py
Created Jan 19, 2019
List of 6783 random names
View listOfRandomNames.py
names = ['Reese', 'Alberto', 'Racquel', 'Shanika', 'Tony', 'Thornton', 'Linton', 'Cleave', 'Texas', 'Warren', 'Arminta', 'Gilford', 'Hali', 'Patti', 'Viney', 'Taylor', 'Susan', 'Squire', 'Joshuah', 'Delta', 'Olaf', 'Tanner', 'Sanjuana', 'Arthur', 'Robin', 'Ema', 'Lucero', 'Gay', 'Baylee', 'Bee', 'Herma', 'Cathryn', 'Krystle', 'Darion', 'Lamar', 'Tillman', 'Ardella', 'Eartha', 'Fumiko', 'Destry', 'Orrie', 'Lizzie', 'Viviana', 'Martez', 'Ed', 'Marry', 'Gwen', 'Tatyanna', 'Bunk', 'Johny', 'Krish', 'Royce', 'Mikel', 'Estill', 'Andy', 'Evelina', 'Savanah', 'Arleen', 'Garnet', 'Roxanna', 'Jaeda', 'Milly', 'Giovanny', 'Palma', 'Eleanor', 'Leroy', 'Alfreda', 'Demarcus', 'Robt', 'Lisha', 'Zetta', 'Elna', 'Kinsley', 'Freeman', 'Eduardo', 'Harriet', 'Mahala', 'Hardie', 'Myrta', 'Esteban', 'Nash', 'Alleen', 'Maddison', 'Opal', 'Alonza', 'Casimir', 'Diane', 'Rosella', 'Ofelia', 'Almon', 'Thyra', 'Martell', 'Callum', 'Presley', 'Chaz', 'Mylie', 'Doshie', 'Cora', 'Keven', 'Armida', 'Shelly', 'Betsy', 'Kelby', 'Myrtis', 'The
@Schizo
Schizo / getAllInputFields.py
Created Jan 1, 2019
Python - get all input fields of a login page
View getAllInputFields.py
from bs4 import BeautifulSoup
import requests
r = requests.get("https://forums.testwebsite.net/login/")
soup = BeautifulSoup(r.content, 'html.parser')
data = {inputfield.attrs['name']: inputfield.attrs['value'] for inputfield in soup.find_all("input")}
View ImageToAscii
import numpy as np
from scipy.interpolate import interp1d
from scipy.misc import imresize
import cv2
def mapCharacters(a):
m = interp1d([0,255],[0,22])
stamps = " .,:;irsXA253hMHGS#9B&@"