Skip to content

Instantly share code, notes, and snippets.

View joetechem's full-sized avatar
💭
Focusing on Cloud Arch responsibilities

joe joetechem

💭
Focusing on Cloud Arch responsibilities
View GitHub Profile
@joetechem
joetechem / hello_world.py
Last active November 1, 2023 23:07
the hello world program using the python language. A classic intro to programming.
# Python 2.7
# let's have the computer tell us "hello world!"
# Remember, a computer program is a set of instructions we tell the computer what to do.
print("Hello World!")
# When we run the program, Python returns the string inside the parentheses
# a string is just any series of letters, numbers, or symbols. Think of it as a line of text.
@joetechem
joetechem / Mtn_Secenario_Adventure_Game.py
Last active July 3, 2021 04:07
Mtn_Secenario_Adventure_Game.py
# Choose your own adventure game
# WIZARD MOUNTAIN
# a text-based choose your own adventure game
# This adventure is like an upside down tree with branches
# this program is full of blocks of code, known as branches, or code branches
# Make sure to visit every branch to make sure all of the code works
def parachute_fail():
@joetechem
joetechem / temp_converter_gui.py
Last active April 5, 2018 17:41
Simple temperature converter (celsius to fahrenheit), with a GUI, using graphics.py by John Zelle
"""
Simple temperature converter (celsius to fahrenheit), with a GUI.
Adapted from graphics.py by John Zelle (https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-189-a-gentle-introduction-to-programming-using-python-january-iap-2011/assignments/graphics.py)
"""
# Make sure to place this file in the same place as graphics.py (from the above source)
from graphics import *
def main():
win = GraphWin("Celsius Converter", 400, 500)
win.setCoords(0.0, 0.0, 3.0, 4.0)
@joetechem
joetechem / README.md
Created January 28, 2018 22:54 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@joetechem
joetechem / my_first_turtle.md
Last active January 28, 2018 21:33
python, turtle, loops, functions, parameters, arguments, encapsulation, generalization

Quick Intro to Turtle Graphics with Python

Author: Joe

01/26/2018

Objectives:

  • Turtle Graphics Module
  • Recognizing Patterns
  • Python Loops
@joetechem
joetechem / basic_calculator.py
Last active January 17, 2018 21:05
representing a basic calculator using python
"""
A calculator program that tells the computer to ask a user for two numbers to calculate, then returns the answer
from the user's input. Python automatically considers what the user types in as a string.
This text and the text above is surrounded by 3 double quotes, which makes it a "docstring".
Docstrings are one way to convey what is happening in a program, or what is supposed to happen, they do not have a program "do" anything.
"""
# Any line that starts with a pound sign (#) is known as a comment, Python knows to ignore comments.
# Comments are useful for explaining what you are doing in a program to yourself or someone else who might
"""
Object Oriented Programming (Thanksgiving Giving style)
We start defining classes with Animals.
We can define that parent of the class, Animals, as well as the parent of that class.
However, to save time we start at Animals. Starting here; instead of
directly at the turkey class, should help keep in mind we can define everything
under the sun using OOP is we wanted to. Again, we will save time!
"""
@joetechem
joetechem / turtle_calculator.py
Created February 24, 2017 18:21
Two simple calculator programs
# Any line that starts with a pound sign (#) is known as a comment, Python knows to ignore comments
# Comments are useful for explaining what you are doing in a program to yourself or someone else who might be working on the same program
# Let's write a calculator program that has the computer ask the user for two number to calculate, then return the answer
# to have a program accept input from a user, we use the raw_input() function, Python automatically considers what the user types in as a string.
print("Please give me a number")
number1 = raw_input() # here's our first variable
print("Please give me another number")
@joetechem
joetechem / calculator_turtle_params.py
Last active October 24, 2017 17:29
turtle calculator with generalization
import turtle
def calc(number1, number2, operation, text_color, bg_color):
if operation == "+":
answer = number1 + number2
elif operation == "-":
answer = number1 - number2
elif operation == "*":
answer = number1 * number2
@joetechem
joetechem / calculator_simple_turtle.py
Created October 24, 2017 17:15
Writes the answer when a simple calculator program is run
import turtle
number1 = int(raw_input("Give me a number: "))
number2 = int(raw_input("Give me another number: "))
operation = raw_input("Give me an operator:" )
if operation == '+':
a = number1 + number2
elif operation == '-':