Skip to content

Instantly share code, notes, and snippets.

View evanwike's full-sized avatar

Evan Wike evanwike

  • Kansas City, Missouri
View GitHub Profile
def maxofthree(x,y,z):
if x > y and x > z:
return x
elif y > x and y > z:
return y
elif z > x and z > y:
return z
def board():
x = int(input('Enter rows:'))
y = int(input('Enter columns:'))
def row():
print(' ' + '--- '*x)
def col():
print(' ' + '| '*(x) + '|')
@evanwike
evanwike / passgen.py
Created August 30, 2016 06:53
Password Generator 2000
import random
def passgen():
lower = 'abcdefghijklmnopqrstuvwxyz'
upper = lower.upper()
number = '1234567890'
special = '~!@#$%^&*()_-+=}{|[]\?/:;\'<>,.'
password = ''
strength = ''
@evanwike
evanwike / _usage.md
Created September 29, 2016 09:45 — forked from tbranyen/_usage.md
OpenWeatherMap / Weather Icons integration
  1. Include Weather Icons in your app: https://github.com/erikflowers/weather-icons

  2. Include the below JSON in your application, for example purposes, lets assume it's a global named weatherIcons.

  3. Make a request to OpenWeatherMap:

req = $.getJSON('http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=?');
@evanwike
evanwike / RPS.py
Created August 30, 2016 05:21
Rock, Paper, Scissors! w/ VS. Computer and Multiplayer - Also keeps score (Python)
import random
def rps(n,x,y):
print('-----------------------')
print('Rock, Paper, Scissors!!')
mode = int(input('(1) Vs. Computer (2) Multiplayer'))
if mode == 1:
print('Wins: ' + str(n))
user = str(input('Rock (R/r), Paper (P/p) or Scissors (S/s)?')).lower()