Skip to content

Instantly share code, notes, and snippets.

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
}
puts "hello, I am C-3P0, human-cyborg relations."
puts "whats your name?"
name = gets().chomp()
@ddzager
ddzager / gist:7e265eb615fd28eb61c7
Created March 19, 2015 02:40
hw not uploaded properly
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()