Skip to content

Instantly share code, notes, and snippets.

View marsty5's full-sized avatar

Maria marsty5

View GitHub Profile
@marsty5
marsty5 / home.html
Created August 28, 2017 13:06
Example of a static website
<html>
<head>
<link href="style.css" rel="stylesheet">
<title> Dogs </title>
</head>
<body>
<header> I'm a main header </header>
<div id="banner"> Big-ass picture with call-to-action</div>
<h1 id="main-title"> This is the beginning </h1>
<p><a href="https://google.com"> I'm anything </a></p>
@marsty5
marsty5 / guessing.rb
Created August 29, 2017 12:36
Ruby game
# My methods
def lets_play()
random_number = rand(0..2)
puts "Please enter a number between 0 and 100"
loop do
guessed_number = gets.chomp.to_i
puts "Please enter a positive number" if guessed_number < 0
puts "Please enter a number below 100" if guessed_number > 100
@marsty5
marsty5 / max.rb
Created August 29, 2017 15:09
Print the max number of an array
## Problem
# Ask the user for 5 numbers (integers)
# and print the maximum/biggest number.
#
# Use an array to save the 5 numbers.
#################################################
## First Step - Break down the problem in steps
# 1a. Create an empty array of size 5 and store it in a variable
# Remember, everything is case-sensitive