Skip to content

Instantly share code, notes, and snippets.

Bryan Hitchcock BryanHitchcock

Block or report user

Report or block BryanHitchcock

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
@BryanHitchcock
BryanHitchcock / mi_349_seed_data.json
Last active Dec 13, 2019
Seed data for MI 349 final project
View mi_349_seed_data.json
[
{
"id": 1,
"name": "Dessert Crepes",
"imageUrl": "assets/dessert-crepes.jpg",
"ingredients": [
{
"description": "4 eggs, lightly beaten"
},
{
View Installing Python 3.7.0 on Raspbian.rst

Installing Python 3.7.3 on Raspbian

As of April 2019, Raspbian does not yet include the latest Python release, Python 3.7.3 This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).
@BryanHitchcock
BryanHitchcock / test5.py
Last active Apr 5, 2019
SS19 CSE 480 - Project 5 Visible Tests
View test5.py
import unittest
from pprint import pprint
from Project.project import connect # , reset_state
class TestsProject5(unittest.TestCase):
# NOTE: This function is called after each test is ran (often referred to
# as the cleanup function). You may need to make a function that resets
# the state of your program (i.e remove all databases and clear all locks)
# in order to run the tests one after the other, otherwise your program
@BryanHitchcock
BryanHitchcock / test4.py
Last active Mar 26, 2019
SS19 CSE 480 - Project 4 Visible Tests
View test4.py
import unittest
from pprint import pprint
from Project.project import connect # , reset_state
class TestsProject4(unittest.TestCase):
# NOTE: This function is called after each test is ran (often referred to
# as the cleanup function). You may need to make a function that resets
# the state of your program (i.e remove all databases and clear all locks)
# in order to run the tests one after the other, otherwise your program
@BryanHitchcock
BryanHitchcock / MathGame.py
Last active Oct 13, 2019
Python Math Game Tutorial
View MathGame.py
import os
import operator as op
import random
completed = { "addition" : False, "subtraction" : False, "multiplication" : False, "division" : False }
math_dict = { "addition" : op.add, "subtraction" : op.sub, "multiplication" : op.mul, "division" : op.truediv }
# The main function.
def main():
print("""Welcome to this math based decision making game!
You can’t perform that action at this time.