Skip to content

Instantly share code, notes, and snippets.

View gto1's full-sized avatar
😀
Hello.

Greg O'Toole gto1

😀
Hello.
View GitHub Profile
@gto1
gto1 / europe.html
Last active September 22, 2024 15:49
ICT-4300 W3 My Europe Travel Wishlist
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Europe Travel Wishlist</title>
</head>
<body>
<h1>My Europe Travel Wishlist</h1>
@gto1
gto1 / 588_base10_base 2.txt
Created September 8, 2024 20:14
Converting 588 from decimal to binary.
1. Divide 588 by 2:
588 ÷ 2 = 294 (quotient), remainder = 0.
The remainder (0) becomes the least significant bit (rightmost).
2. Divide the quotient (294) by 2:
294 ÷ 2 = 147 (quotient), remainder = 0.
The remainder (0) is the next bit.
3. Divide the quotient (147) by 2:
147 ÷ 2 = 73 (quotient), remainder = 1.
@gto1
gto1 / 67_base10_base3.txt
Created September 8, 2024 20:02
Convert 67 from base 10 (decimal) to base 3
1. Divide 67 by 3:
67 ÷ 3 = 22 (quotient) with a remainder of 1.
Record the remainder: 1.
2. Divide the quotient (22) by 3:
22 ÷ 3 = 7 (quotient) with a remainder of 1.
Record the remainder: 1.
3. Divide the quotient (7) by 3:
7 ÷ 3 = 2 (quotient) with a remainder of 1.
@gto1
gto1 / IT-117_unit_7_Assignment_2024_redboxes.html
Created July 13, 2024 14:49
Clean, Lightweight Form Validation with Awesome Usability
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webform with Validation</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
@gto1
gto1 / fun-with-pong.py
Last active May 18, 2024 14:29
Practicing Python by building a traditional Pong game.
#start by importing the Turtle library
import turtle
# Set up the screen
screen = turtle.Screen()
screen.title("Pong")
screen.bgcolor("black")
screen.setup(width=800, height=600)
screen.tracer(0)