• Programming stuff ...

  • Testing an SMS link in Safari.
  • Proof of concept - GODOT game exported to web.
  • My JSFiddle profile
  • My P5.js profile
  • My Coding Game profile
  • A page that contains every HTML element...
  • Josh's Game Session Database

    A way to track game sessions. What game was played. Who played. What score everyone got.

    We're going to store it in a database so the info can be storred, recalled, and reported on.

    Home page will be a dashboard. Maybe some quick stats. Links for entering a new session and reporting on storred sessions.

    Click here to try it...

  • A quick Python script to scrape my recipe titles.

    import requests
    from bs4 import BeautifulSoup
    
    # URL of the website to scrape
    url = 'http://milesorrick.ca/recipes.html'
    
    # Send a GET request to the website
    response = requests.get(url)
    
    # Check if the request was successful
    if response.status_code == 200:
        # Parse the HTML content of the page
        soup = BeautifulSoup(response.content, 'html.parser')
        
        # Find all recipe titles
        titles = soup.find_all('span', class_='title')
        
        # Print the titles in a numbered list
        for i, title in enumerate(titles, start=1):
            print(f"{i}. {title.find('p').get_text()}")
    else:
        print(f"Failed to retrieve the page. Status code: {response.status_code}")
    
    
  • Back to homepage