Skip to content

Instantly share code, notes, and snippets.

View rebeccabartels's full-sized avatar
💭
geeking out

└[∵┌]└[ ∵ ]┘[┐∵]┘ rebeccabartels

💭
geeking out
View GitHub Profile
@rebeccabartels
rebeccabartels / Reused code.rb
Created February 23, 2017 00:36
Reused code created by rebeccabartels - https://repl.it/FJ6Y/1
def emphasize(msg)
msg + "!"
end
puts emphasize("My brain hurts")
puts emphasize("But this is pretty cool")
puts emphasize("I'll get the hang of it")
# custom_greeting method. Input 1: greeting - string. Input 2: a person's name - String example input: "Hi" and "Enrique"
@rebeccabartels
rebeccabartels / First Program In Ruby.rb
Created January 14, 2017 19:21
First Program In Ruby created by rebeccabartels - https://repl.it/FJ3S/0
#First little program - gets.chomp!
puts "Hello, World!"
person = 1
p person
angela = "Angela"
puts "Hi #{angela}!"
name = "Jennifer"
puts "Hi, my name is #{name}!"