Skip to content

Instantly share code, notes, and snippets.

View mbriscoe's full-sized avatar

Mark Briscoe mbriscoe

  • Code Institute
  • Wales, UK
View GitHub Profile
import pandas as pd
from PIL import Image
import streamlit as st
from streamlit_drawable_canvas import st_canvas
# Specify canvas parameters in application
drawing_mode = st.sidebar.selectbox(
"Drawing tool:", ("point", "freedraw", "line",
"rect", "circle", "transform")
)
@mbriscoe
mbriscoe / app.py
Created September 1, 2025 14:03
2506 FS Card Game
# import packages
import os
import random
from colorama import Fore
os.system("clear")
# set up the game
suits = ("Hearts", "Clubs", "Diamonds", "Spades")
@mbriscoe
mbriscoe / app.py
Created August 12, 2025 11:01
2507-DBC-Python-OOP
import os
os.system("clear")
# ENCAPSULATION
class Bird:
# CONSTRUCTOR
def __init__(self, type, call):
self.type = type
@mbriscoe
mbriscoe / index.html
Last active August 11, 2025 15:04
2506+-FS-WeatherApp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/style.css">
@mbriscoe
mbriscoe / app.py
Created July 2, 2025 10:07
2504 HDFWDS Python OOP
# ENCASPULATION
import os
os.system("clear")
class Bird:
# CLASS ATTRIBUTE
num_birds = 0
@mbriscoe
mbriscoe / index.html
Created June 11, 2025 09:54
Headforwards Shopping List
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
@mbriscoe
mbriscoe / index.html
Created June 11, 2025 09:53
Headforwards Shopping List
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
@mbriscoe
mbriscoe / app.js
Created June 6, 2025 13:51
Number Guessing Game
// Get the DOM elements and initialize the game
const inputElement = document.querySelector('input');
const messageElement = document.querySelector('.message');
const checkButton = document.querySelector('button');
const remainingGuesses = document.querySelector('.guesses-left');
// Set the focus on input field
inputElement.focus();
// create a random number
@mbriscoe
mbriscoe / app.py
Created February 18, 2025 12:10
2412 LANCS/WECA Python Card Game
# import packages
import os
import random
from colorama import Fore
os.system("clear")
# set up the game
suits = ("Hearts", "Clubs", "Diamonds", "Spades")
numbers = (range(2, 15))
@mbriscoe
mbriscoe / app.py
Created February 14, 2025 12:11
2412 HDFWD Python Card Game
# import packages
import os
import random
from colorama import Fore, Style
# setup main game variables
suits = ('Hearts', 'Diamonds', 'Clubs', 'Spades')
numbers = (range(2, 15))
player1_card = ()