Skip to content

Instantly share code, notes, and snippets.

Evan Wike evanwike

  • Kansas City, Missouri
Block or report user

Report or block evanwike

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@evanwike
evanwike / _usage.md
Created Sep 29, 2016 — forked from tbranyen/_usage.md
OpenWeatherMap / Weather Icons integration
View _usage.md
  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 / passgen.py
Created Aug 30, 2016
Password Generator 2000
View passgen.py
import random
def passgen():
lower = 'abcdefghijklmnopqrstuvwxyz'
upper = lower.upper()
number = '1234567890'
special = '~!@#$%^&*()_-+=}{|[]\?/:;\'<>,.'
password = ''
strength = ''
@evanwike
evanwike / RPS.py
Created Aug 30, 2016
Rock, Paper, Scissors! w/ VS. Computer and Multiplayer - Also keeps score (Python)
View RPS.py
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()
View Draw a Game Board of N Size
def board():
x = int(input('Enter rows:'))
y = int(input('Enter columns:'))
def row():
print(' ' + '--- '*x)
def col():
print(' ' + '| '*(x) + '|')
View Max Of Three
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
You can’t perform that action at this time.