Skip to content

Instantly share code, notes, and snippets.

@robvanderleek
Last active August 1, 2020 09:14
Show Gist options
  • Save robvanderleek/23494296fd1ae8ebd8c3784a67c83e0b to your computer and use it in GitHub Desktop.
Save robvanderleek/23494296fd1ae8ebd8c3784a67c83e0b to your computer and use it in GitHub Desktop.
Generate CI/CD buzz
from __future__ import print_function
import random
buzz = ('continuous testing', 'continuous integration',
'continuous deployment', 'continuous improvement', 'devops')
adjectives = ('complete', 'modern', 'self-service', 'integrated', 'end-to-end')
adverbs = ('remarkably', 'enormously', 'substantially', 'significantly',
'seriously')
verbs = ('accelerates', 'improves', 'enhances', 'revamps', 'boosts')
def sample(l, n = 1):
result = random.sample(l, n)
if n == 1:
return result[0]
return result
def generate_buzz():
buzz_terms = sample(buzz, 2)
phrase = ' '.join([sample(adjectives), buzz_terms[0], sample(adverbs),
sample(verbs), buzz_terms[1]])
return phrase.title()
if __name__ == "__main__":
print(generate_buzz())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment