Skip to content

Instantly share code, notes, and snippets.

View Sparrow1029's full-sized avatar
💭
Always learning to code

Alex Ray Sparrow1029

💭
Always learning to code
  • Charter Communications
  • Denver, CO
View GitHub Profile
@Sparrow1029
Sparrow1029 / print_board.py
Created November 12, 2017 20:13
(PracticePython) Drawing a gameboard with number of squares based on user input
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
Ask user size of gameboard and print to screen
"""
while True:
try:
size = int(input("How many squares on a side? "))
@Sparrow1029
Sparrow1029 / psswd_gen.py
Created November 12, 2017 19:21
Password generator
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
Make a password generator with options for weak to strong.
Weak should select a word or two from a list, strong should contain
uppercase, lowercase, symbols and numbers.
"""
from sys import exit
@Sparrow1029
Sparrow1029 / gist:598ffcfa1ef8e80e0223cc5ef445f3f7
Created November 8, 2017 07:11
Python Practice 19 - Decode a web page [Sparrow1029]
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
from pprint import pprint
r = \
requests.get('http://www.vanityfair.com/society/2014/06/monica-lewinsky-humiliation-culture')
soup = BeautifulSoup(r.text, "lxml")