Skip to content

Instantly share code, notes, and snippets.

View kharissa's full-sized avatar
👩‍💻

Kharissa Fernando Smith kharissa

👩‍💻
View GitHub Profile
@kharissa
kharissa / __init__.py
Created May 4, 2019 08:59
Sending static files from the static folder to the browser
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):

Keybase proof

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:

/*
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
*/
@kharissa
kharissa / dragon-slaying.js
Created February 29, 2016 17:38
javascript exercise from codeacademy
var slaying = true;
var youHit = Math.floor(Math.random() * 2)
while (slaying) {
if (youHit) {
console.log("Congrats! You hit the dragon.");
@kharissa
kharissa / rock_paper_scissors.js
Created February 29, 2016 11:15
rock, paper, scissors game from CodeAcademy
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);