Skip to content

Instantly share code, notes, and snippets.

View matt297's full-sized avatar

Matt Hennessy matt297

View GitHub Profile
@matt297
matt297 / fizzbuzz.rb
Last active November 2, 2016 23:32 — forked from sarahca/fizzbuzz.rb
Lighthouse Labs - Intro to Web Dev - W2D2
# Our program should
# - make a list of numbers from 1 to 100 (inclusive)
# - for each number:
# print "Fizz" if divisible by 3
# print "Buzz" if divisible by 5
# print "FizzBuzz" if divisible by 3 AND 5
# otherwise, print the number
# uncomment the block of code you want to run to test each version
@matt297
matt297 / ruby_examples.rb
Last active November 14, 2021 04:29 — forked from MaggieMoss/ruby-examples.rb
Lighthouse Labs - Intro to Web Dev - W2D2
# STRINGS
# # we can use double quotes
puts "This is a string."
# # or we can use single quotes
puts 'This is a string with single quotes.'
# # adding two strings together
puts 'Hello, ' + "Maggie."
#INTEGER
#we can add them