Skip to content

Instantly share code, notes, and snippets.

View cwshevlin's full-sized avatar
🚴‍♂️
bike

Colin Shevlin cwshevlin

🚴‍♂️
bike
View GitHub Profile
@cwshevlin
cwshevlin / tic_tac_toe.py
Last active December 9, 2021 21:49
A command line tic tac toe game
from typing import Optional
import argparse
def _validate_number_of_players(number_of_players: int):
if number_of_players != 2:
raise ValueError('Tic Tac Toe is a 2 player game for now.')
def _validate_player_mark(player_mark: str):
@cwshevlin
cwshevlin / gist:9e0d86827d1ed8a41a7e
Created September 5, 2014 16:32
Science trivia for parsing.
Science: What is Deoxyribonucleic acid commonly referred to as?*DNA
Science: What is Ribonucleic acid commonly referred to as?*RNA
Science: What process involves treating rubber with sulfur to harden it?*Vulcanizing
Science: What scale of zero to 14 is used to measure acidity or alkalinity?*The pH scale
Science: What O-word describes oxygen with molecules that have three atoms instead of two?*Ozone
Science: What unit of electrical power is equal to one joule per second?*The Watt
Science: What planet is closest in size to our moon?*Mercury
Science: What's the common name for a cubic decimeter?*liter
Science: What measure of energy comes from the Latin word meaning "heat"?*The calorie
Science: What's removed from water in the process of desalination?*Salt
@cwshevlin
cwshevlin / Computer Trivia.txt
Created September 5, 2014 16:24
Computer trivia to parse
Computers: The generic term for the mechanical, electrical and electronic components of a computer are called what?*Hardware
Computers: Which computer language is an acronym of the name of the world's first computer programmer?*ADA
Computers: What letter is between Q and E on a computer keyboard?*W
Computers: In computer lingo what is a MUD?*Multi User Computer Game
Computers: What kind of fruit was used to name a computer in 1984?*Apple
Computers: In what field of study are the terms CPU, PC, and VDU used?*Computer Science
Computers: From what source did William Henry Gates III amass his fortune?*Computer software
Computers: Charlie the pet dog was replace by what in the remake of the Absent-minded Professor called "Flubber" in 1997?*Weebo, the computer
Computers: What did Charles Babbage invent when he designed his analytical engine in 1833?*Computer
Computers: Movie maker George Lucas Filed a law suit against President Ronald Reagan to get him to stop referring to an outer space computer controlled defense