Skip to content

Instantly share code, notes, and snippets.

@ioistired
Created June 1, 2020 22:56
Show Gist options
  • Save ioistired/fb6ac96bad2e840f36b9ec53cc3f7a2a to your computer and use it in GitHub Desktop.
Save ioistired/fb6ac96bad2e840f36b9ec53cc3f7a2a to your computer and use it in GitHub Desktop.
github repository name generator
# Creates a fun suggested name for users
def suggested_name
prefix = rand < 0.25 ? "octo-" : ""
"#{adjectives.sample}-#{prefix}#{nouns.sample}"
end
ADJECTIVES = %w[
animated
automatic
bookish
bug-free
cautious
congenial
crispy
cuddly
curly
didactic
effective
expert
fantastic
fictional
fluffy
friendly
furry
fuzzy
glowing
ideal
improved
jubilant
laughing
legendary
literate
miniature
musical
potential
probable
psychic
redesigned
refactored
reimagined
scaling
shiny
silver
solid
special
studious
stunning
sturdy
super
super-duper
supreme
symmetrical
turbo
ubiquitous
upgraded
urban
verbose
vigilant
].freeze
NOUNS = %w[
adventure
barnacle
bassoon
broccoli
carnival
chainsaw
computing-machine
couscous
disco
dollop
doodle
engine
enigma
eureka
fiesta
fortnight
funicular
garbanzo
giggle
goggles
guacamole
guide
happiness
invention
journey
lamp
meme
memory
palm-tree
pancake
parakeet
potato
robot
rotary-phone
sniffle
spoon
spork
succotash
system
telegram
train
tribble
umbrella
waddle
waffle
winner
].freeze
def adjectives
ADJECTIVES
end
def nouns
NOUNS
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment