Last active
August 1, 2020 09:14
-
-
Save robvanderleek/23494296fd1ae8ebd8c3784a67c83e0b to your computer and use it in GitHub Desktop.
Generate CI/CD buzz
This file contains hidden or 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
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