I hereby claim:
- I am kharissa on github.
- I am kharissa (https://keybase.io/kharissa) on keybase.
- I have a public key ASA8L8Uzny4hhJxGT_j6YpCUF30wE0yg1EcK0lK3KMCGLAo
To claim this, I am signing this object:
from app import app | |
from flask import render_template | |
from flask_assets import Environment, Bundle | |
from .util.assets import bundles | |
assets = Environment(app) | |
assets.register(bundles) | |
@app.errorhandler(500) | |
def internal_server_error(e): |
I hereby claim:
To claim this, I am signing this object:
/* | |
Haiku Generator | |
1. Create 2 arrays, one for each length of haiku lines (5 and 7 syllables. | |
2. Create a function using math.random that creates 3-line haikus | |
4. Print each haiku to the console | |
*/ |
var slaying = true; | |
var youHit = Math.floor(Math.random() * 2) | |
while (slaying) { | |
if (youHit) { | |
console.log("Congrats! You hit the dragon."); | |
var userChoice = prompt("Do you choose rock, paper or scissors?"); | |
var computerChoice = Math.random(); | |
if (computerChoice < 0.34) { | |
computerChoice = "rock"; | |
} else if(computerChoice <= 0.67) { | |
computerChoice = "paper"; | |
} else { | |
computerChoice = "scissors"; | |
} console.log("Computer: " + computerChoice); |