This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dirty_words = ['pee', 'poop', 'she-dog', 'phallus', 'fornicate', 'frack'] | |
#prompt user to say bad words | |
puts "Go ahead, say your worst:" | |
#accept an input sentence, making sure to make input_phrase lower case | |
input_phrase = gets.chomp.downcase | |
#creat an array of words from input_sentence | |
user_words = input_phrase.split() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "hello, I am C-3P0, human-cyborg relations." | |
puts "whats your name?" | |
name = gets().chomp() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
welcome(){ | |
mkdir generalassembly | |
cd generalassembly | |
mkdir Homework Notes Projects Outcomes | |
mkdir -p Homework/Week01/Day01 | |
mkdir -p Notes/Week01/Day01 | |
echo "Keep calm and carry on" > README.md | |
echo "Hey there, student! Welcome to WDI6! I just set up this directory tree for you:" | |
tree | |
} |