Created
August 21, 2013 14:31
-
-
Save johnnypez/6295237 to your computer and use it in GitHub Desktop.
generate an ubuntu style release name
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
#! /usr/bin/env ruby | |
require 'yaml' | |
data = YAML.load(DATA) | |
adjective = data["adjectives"].sample | |
animal = data["animals"].select {|a| a.match(/^#{adjective[0]}/)}.sample | |
puts "#{adjective} #{animal}" | |
__END__ | |
--- | |
adjectives: | |
- adorable | |
- adventurous | |
- aggressive | |
- agreeable | |
- alert | |
- alive | |
- amused | |
- angry | |
- annoyed | |
- annoying | |
- anxious | |
- arrogant | |
- ashamed | |
- attractive | |
- average | |
- awful | |
- bad | |
- beautiful | |
- better | |
- bewildered | |
- black | |
- bloody | |
- blue | |
- blue-eyed | |
- blushing | |
- bored | |
- brainy | |
- brave | |
- breakable | |
- bright | |
- busy | |
- calm | |
- careful | |
- cautious | |
- charming | |
- cheerful | |
- clean | |
- clear | |
- clever | |
- cloudy | |
- clumsy | |
- colorful | |
- combative | |
- comfortable | |
- concerned | |
- condemned | |
- confused | |
- cooperative | |
- courageous | |
- crazy | |
- creepy | |
- crowded | |
- cruel | |
- curious | |
- cute | |
- dangerous | |
- dark | |
- dead | |
- defeated | |
- defiant | |
- delightful | |
- depressed | |
- determined | |
- different | |
- difficult | |
- disgusted | |
- distinct | |
- disturbed | |
- dizzy | |
- doubtful | |
- drab | |
- dull | |
- eager | |
- easy | |
- elated | |
- elegant | |
- embarrassed | |
- enchanting | |
- encouraging | |
- energetic | |
- enthusiastic | |
- envious | |
- evil | |
- excited | |
- expensive | |
- exuberant | |
- fair | |
- faithful | |
- famous | |
- fancy | |
- fantastic | |
- fierce | |
- filthy | |
- fine | |
- foolish | |
- fragile | |
- frail | |
- frantic | |
- friendly | |
- frightened | |
- funny | |
- gentle | |
- gifted | |
- glamorous | |
- gleaming | |
- glorious | |
- good | |
- gorgeous | |
- graceful | |
- grieving | |
- grotesque | |
- grumpy | |
- handsome | |
- happy | |
- healthy | |
- helpful | |
- helpless | |
- hilarious | |
- homeless | |
- homely | |
- horrible | |
- hungry | |
- hurt | |
- ill | |
- important | |
- impossible | |
- inexpensive | |
- innocent | |
- inquisitive | |
- itchy | |
- jealous | |
- jittery | |
- jolly | |
- joyous | |
- kind | |
- lazy | |
- light | |
- lively | |
- lonely | |
- long | |
- lovely | |
- lucky | |
- magnificent | |
- misty | |
- modern | |
- motionless | |
- muddy | |
- mushy | |
- mysterious | |
- nasty | |
- naughty | |
- nervous | |
- nice | |
- nutty | |
- obedient | |
- obnoxious | |
- odd | |
- old-fashioned | |
- open | |
- outrageous | |
- outstanding | |
- panicky | |
- perfect | |
- plain | |
- pleasant | |
- poised | |
- poor | |
- powerful | |
- precious | |
- prickly | |
- proud | |
- puzzled | |
- quaint | |
- real | |
- relieved | |
- repulsive | |
- rich | |
- scary | |
- selfish | |
- shiny | |
- shy | |
- silly | |
- sleepy | |
- smiling | |
- smoggy | |
- sore | |
- sparkling | |
- splendid | |
- spotless | |
- stormy | |
- strange | |
- stupid | |
- successful | |
- super | |
- talented | |
- tame | |
- tender | |
- tense | |
- terrible | |
- testy | |
- thankful | |
- thoughtful | |
- thoughtless | |
- tired | |
- tough | |
- troubled | |
- ugliest | |
- ugly | |
- uninterested | |
- unsightly | |
- unusual | |
- upset | |
- uptight | |
- vast | |
- victorious | |
- vivacious | |
- wandering | |
- weary | |
- wicked | |
- wide-eyed | |
- wild | |
- witty | |
- worrisome | |
- worried | |
- wrong | |
- zany | |
- zealous | |
animals: | |
- aardvark | |
- albatross | |
- alligator | |
- alpaca | |
- anaconda | |
- ant | |
- anteater | |
- antelope | |
- armadillo | |
- aye-aye | |
- baboon | |
- badger | |
- bandicoot | |
- barnacle | |
- barracuda | |
- basilisk | |
- bass | |
- bat | |
- beaver | |
- bee | |
- beetle | |
- bird | |
- bison | |
- blackbird | |
- blowfish | |
- boa | |
- boar | |
- bob-cat | |
- bonobo | |
- buck | |
- budgie | |
- buffalo | |
- bull | |
- butterfly | |
- buzzard | |
- caribou | |
- cheetah | |
- camel | |
- canary | |
- carp | |
- cat | |
- caterpillar | |
- cattle | |
- catfish | |
- chameleon | |
- centipede | |
- chicken | |
- chimpanzee | |
- chihuahua | |
- chinchilla | |
- chipmunk | |
- clam | |
- chupacabra | |
- cobra | |
- cockatiel | |
- cockatoo | |
- cockroach | |
- cod | |
- coho | |
- cougar | |
- cow | |
- coyote | |
- crab | |
- crane | |
- crawfish | |
- cricket | |
- crocodile | |
- crow | |
- deer | |
- dog | |
- du-gong | |
- dalmation | |
- dacshund | |
- degus | |
- dik-dik | |
- dingo | |
- dinosaur | |
- dolphin | |
- donkey | |
- dormouse | |
- dove | |
- dragonfly | |
- drake | |
- duck | |
- eagle | |
- earthworm | |
- earwig | |
- echidna | |
- eclectus | |
- eel | |
- egret | |
- elephant | |
- elk | |
- emu | |
- erne | |
- falcon | |
- finch | |
- fish | |
- firefly | |
- flamingo | |
- flatworm | |
- fly | |
- ferret | |
- fox | |
- frog | |
- gazelle | |
- giraffe | |
- gnat | |
- goat | |
- goose | |
- gopher | |
- gorilla | |
- grasshopper | |
- hare | |
- hawk | |
- hedgehog | |
- heron | |
- herring | |
- hippopotamus | |
- horse | |
- hyena | |
- hyrax | |
- iguana | |
- iguanodon | |
- impala | |
- inchworm | |
- jackal | |
- jackrabbit | |
- jaguar | |
- kangaroo | |
- kookaburra | |
- krill | |
- lama | |
- lamb | |
- lancelet | |
- leech | |
- lemming | |
- lemur | |
- leopard | |
- lice | |
- lion | |
- lionfish | |
- llama | |
- lobster | |
- lynx | |
- manatee | |
- man-of-war | |
- marsupials | |
- meerkat | |
- mink | |
- mole | |
- mollusks | |
- mongoose | |
- monkey | |
- moose | |
- mouse | |
- mule | |
- muskox | |
- muskrat | |
- narwhal | |
- nautilus | |
- nene | |
- newt | |
- nutria | |
- nyala | |
- ocelot | |
- octopus | |
- okapi | |
- opossum | |
- orangutan | |
- orca | |
- osprey | |
- ostrich | |
- otter | |
- owl | |
- orang-utan | |
- ox | |
- panda | |
- pelican | |
- penguin | |
- pig | |
- quail | |
- quetzal | |
- rat | |
- ray | |
- reindeer | |
- snails | |
- snake | |
- sponge | |
- tiger | |
- tadpole | |
- tamarin | |
- tapeworm | |
- tarantula | |
- tarpan | |
- terrapin | |
- tortoise | |
- turtle | |
- uakari | |
- urchin | |
- urutu | |
- vicuna | |
- viper | |
- vulture | |
- velociraptor | |
- vole | |
- vervet | |
- walrus | |
- warbler | |
- warthog | |
- wasp | |
- whale | |
- whooper | |
- weasel | |
- weevil | |
- wolf | |
- wren | |
- wombat | |
- xantus | |
- xenop | |
- yak | |
- yeti | |
- zander | |
- zebra | |
- zorilla | |
- zebu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment