Last active
August 29, 2015 14:10
-
-
Save maxov/1f52c8f352b87986567b to your computer and use it in GitHub Desktop.
Just some BS for fun
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/python | |
import random | |
import re | |
import sys | |
no_spaces = re.compile('\s') | |
# many thanks to: | |
# - my head | |
# - http://www.tutorialspoint.com/design_pattern/ (gold mine) | |
# - gabizou (Bean) | |
words = no_spaces.sub('', ''' | |
Strategy+Factory+Interface+Impl+I+Provider+Injector+Event+Solution+ | |
Comparator+Builder+Facade+Processor+Base+Model+View+Controller+Presenter+ViewModel+ | |
Tree+Stack+Queue+KDTree+Iterator+Collection+Service+Registry+Dictionary+Design+ | |
AbstractFactory+Singleton+Prototype+Adapter+Bridge+Filter+Composite+Decorator+Facade+ | |
Flyweight+Proxy+ChainOfResponsibility+Pattern+Command+Interpreter+Mediator+Memento+ | |
Observer+State+NullObject+Template+Recursor+Visitor+Reactor+EventBus+Delegate+Business+ | |
Enterprise+CompositeEntity+Entity+DataAccessObject+Data+Access+Algorithm+Front+Controller+ | |
FrontController+Intercepting+Service+Locator+ServiceLocator+TransferObject+Transfer+ | |
Transformer+Platform+Analyzer+MapReduce+Mapper+Reducer+Recursive+Dynamic+Functional+ | |
Bootstrap+Actor+Component+Entity+System+Bean | |
''').split('+') | |
num_words = len(words) - 1 | |
def rand_word(): | |
return words[random.randint(0, num_words)] | |
def bs(size = None): | |
if size is None: size = random.randint(8, 24) | |
return ''.join( | |
rand_word() for i in xrange(1, size + 1)) | |
if __name__ == '__main__': | |
if len(sys.argv) is 2: | |
for i in xrange(1, int(sys.argv[1]) + 1): | |
print(bs()) | |
else: | |
print(bs()) |
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
SolutionInterceptingMementoDictionaryPatternFacadeControllerFunctionalEventBusFrontControllerStrategyProxyInterfaceStrategyFacadeServiceLocatorObserverAnalyzerSolution | |
InterpreterPatternTransferInjectorMapperReactorMementoAnalyzerControllerIteratorDataAccessObject | |
FunctionalBuilderTemplateAccessLocatorQueueBridgeStackDataViewModelDelegateControllerViewControllerAlgorithmSolutionDataAccessObjectTemplateReducer | |
DataTransferObjectStateLocatorFilterMementoPatternInterpreterSolutionEntityFrontControllerFrontControllerSolutionTemplateBuilder | |
DataFrontObserverAlgorithmServicePrototypePatternProcessorTransferDecoratorCompositeBaseModelTransformerTransferMementoServiceLocator | |
BootstrapDictionaryComparatorChainOfResponsibilityNullObjectControllerFlyweightIMapperIteratorServiceLocatorEntityTreeServiceLocatorObserver | |
FunctionalReactorDataAccessObjectMapperTemplateMementoEventRegistryStrategy | |
ControllerIBootstrapCommandViewModelServiceEventMapperBuilderEventBus | |
RecursiveFacadeCommandMapperLocatorLocatorStrategyModelState | |
TransferMediatorBridgeAccessPlatformIteratorFlyweightPresenterAbstractFactoryTransferObjectFunctionalIDataAccessObjectSingletonStackReactorStackInterpreterProxyVisitor | |
DelegateControllerInterfacePrototypeFacadeFilterRecursiveState | |
TransferAbstractFactoryServiceDesignMementoInterpreterIteratorReactorVisitorProcessorEnterpriseStrategyMapReduceFilterServiceLocatorProxyDelegateMapperDesignFacadeSolutionStateInjector | |
DictionaryMapperServicePrototypeFacadeControllerBootstrapFacadeInterfaceDelegateEventBusBuilderService | |
AdapterServiceLocatorDelegateViewFactoryInjectorComparatorViewModelPlatformCompositeDesignFlyweightAlgorithmPresenterKDTreeMediatorStrategyNullObjectAccessSolutionMediator | |
ServiceLocatorInterpreterProxyIRegistryLocatorRegistryProxyIServiceAccessDelegateDynamicDictionaryReactorMapReduceCollectionViewCompositeEntityTree | |
EnterpriseReactorDesignDecoratorFilterViewModelSingletonDictionaryFacadeModelDynamicBridgeKDTreeMediatorDataMementoProviderFacadeServiceLocatorDesignProviderView | |
AccessViewControllerControllerControllerQueuePatternReducerDelegateReducerDesignEventVisitorFlyweightServiceModel | |
BootstrapPresenterCompositeEntityStrategyTemplateAbstractFactoryAlgorithmCollectionTransferObserverMementoFactoryFrontControllerComposite | |
BuilderDataInterpreterIteratorFrontControllerViewAccessReducerTransferObject | |
InterfaceFrontComparatorDataAccessObjectInterceptingModelStrategyMapReduceIDataServiceLocatorComparatorBusinessTreeBuilder | |
EventBusProviderPresenterServiceCompositeAnalyzerFacadeTransformerCollectionDynamicServiceLocatorFacadeDecoratorFlyweightEntityCollectionMementoReducerFrontTransferObjectDesignPlatformService | |
ViewChainOfResponsibilityChainOfResponsibilityAccessPrototypeTemplateSingletonCommandProcessorKDTreeObserverFront | |
CompositeBaseInterceptingNullObjectAnalyzerMapReduceAlgorithmProxySingletonAbstractFactoryTemplateStateMediatorControllerReactorObserver | |
DecoratorKDTreeRecursorInterfaceServiceLocatorFunctionalTransformerFrontAdapterEntityMapper | |
MapReduceEntityControllerChainOfResponsibilityImplEntityCollectionFrontTransferBridgeFacadeRecursiveChainOfResponsibilitySingletonInterfaceAlgorithmFacadeBuilderAlgorithmCompositeEntityDecoratorDataView | |
PrototypeInterfaceNullObjectEntityCommandFilterReducerTransformerFrontComparatorFunctionalDecoratorBusiness | |
ControllerMementoDictionaryChainOfResponsibilityRecursorAbstractFactoryReducerRecursivePlatformViewModelInjectorImplFilter | |
ReducerPlatformStackCompositeEntityViewTreeEventRecursorMapperInterfaceFactoryMapperBridgeServiceLocatorBaseViewModelInterfaceIterator | |
TransformerInterfaceInjectorInterpreterPresenterTreePresenterAlgorithmAbstractFactoryFactoryViewRecursiveLocatorBridgeInterpreterFunctionalChainOfResponsibilityDecoratorImplAdapter | |
DictionaryEnterpriseDynamicVisitorMementoReactorActorQueueObserverReducerAnalyzerEnterpriseDecoratorControllerAlgorithmEventBusFacadeInterceptingCollectionBootstrapCompositeTemplate | |
ControllerPresenterDelegateRegistryEventBusStrategyEntityActorMediatorMediatorInterpreterPlatformBootstrapDataFunctionalBusinessQueue | |
EventBusProcessorInterpreterEventBusMementoNullObjectFacadeBusinessCompositeEntityModel | |
RecursiveAccessFunctionalReactorEnterpriseViewModelProxyRecursorControllerPrototypeRecursiveAlgorithmMementoAlgorithmDesignDataTreeEventBusTransformerInjectorProcessorAnalyzerBusinessVisitor | |
TransferObjectDataProcessorMapReduceReactorProviderTransformerTemplateDesignInterfaceBuilderRegistryView | |
VisitorStrategyQueueComparatorViewModelDelegateProviderDataAccessObjectInterpreterProcessorEnterpriseTransferMediatorAdapterService | |
MementoProviderComparatorFrontControllerServiceLocatorInterfaceAlgorithmProxyServiceServiceActorEntityRecursiveMapperReducerBase | |
InjectorReducerMementoChainOfResponsibilityBusinessMediatorSolutionAlgorithmBootstrapDesignControllerPatternBridgePlatformFacadeTransferProvider | |
AnalyzerBuilderIteratorInterpreterComparatorStrategyViewMapperFacadeInterpreterInterpreter | |
ViewModelRecursiveInjectorPlatformFrontControllerSingletonEventEntityDataFrontControllerDesignDictionaryPrototypeServiceComposite | |
MapperTransformerRegistryRegistryStrategyKDTreeDataAccessObjectObserverInterceptingFlyweightInterpreterCollection | |
FacadeControllerInjectorFacadeChainOfResponsibilityViewAbstractFactoryMementoProcessorFlyweightInterpreterFacadeCollectionDynamic | |
ObserverChainOfResponsibilityCompositePrototypeRecursorQueueServiceTemplate | |
TransferObjectPrototypeFlyweightDecoratorInterpreterIPresenterServiceIterator | |
NullObjectBuilderCommandPlatformTemplateProviderFrontControllerCompositeFrontControllerAbstractFactoryRegistryKDTreeFlyweightVisitorMapReduceFacadeInterceptingRecursiveMementoObserverReactorBuilder | |
ServiceSolutionRecursiveInjectorObserverActorServiceLocatorFilterServiceLocatorInterpreterControllerFilterAlgorithm | |
VisitorServiceLocatorDictionaryMediatorProxyFacadePatternComparatorAdapter | |
AnalyzerBaseCollectionReactorStrategyTransferObjectCollectionLocatorAbstractFactoryPresenterServiceStrategyBaseVisitorActorQueueLocatorDictionaryMapReduceDesignComparatorInterceptingFactory | |
StateStateDynamicTransferObjectInterpreterCompositeEntityServiceLocatorKDTreeMapReduceCommandModelEventBusPatternQueueDynamic | |
ViewModelAnalyzerEventDesignFlyweightFactoryBuilderServiceDictionaryDataAccessObjectSolutionAccessNullObject | |
DataAccessObjectIStackTransferObjectEventBusImplLocatorTransformerComparator | |
EventBusDecoratorCompositeIProcessorTreeFlyweightDelegateDataAccessObjectBuilderFrontDecoratorTreeProvider | |
BuilderMementoFunctionalAdapterEventTransferObjectStackControllerPlatformMapperEnterpriseComparatorCompositeEntitySolutionStack | |
TransferFactoryAdapterSolutionEnterpriseFunctionalTemplateFunctionalProxyRegistryFacadeAnalyzerDataInterpreterFactoryBootstrapAnalyzer | |
KDTreeBaseTransferDesignDesignRegistryCommandComparatorService | |
LocatorEventViewStateModelServiceEventBusViewModelKDTreeDataBootstrapFilterTransformerDesignRecursorMapperDynamicPresenterFactoryObserverViewInterfaceComposite | |
FactoryProviderBuilderFunctionalInterpreterReactorEntityDataSolutionAbstractFactoryComposite | |
DictionaryFunctionalFacadeProxyAccessCommandFrontVisitorBridgeAlgorithmPrototypeViewModelServiceInjectorImplDynamicAdapterAbstractFactoryModelMapReduceMediatorFactoryProviderBase | |
DataAccessObjectTemplateMapReduceEventBusVisitorFacadeReducerFactoryProcessorServiceDecoratorController | |
StrategyServiceBuilderInterceptingControllerReactorImplProxyLocatorTransformerServiceFacadePatternMementoProcessorDynamic | |
DecoratorRecursorRecursiveDesignViewControllerTreeReactorActorInterfaceMementoServiceMapReduceFacadeFilterTransformerDataRecursive | |
TransformerInjectorProviderInterpreterVisitorEnterpriseRecursorCompositeCompositeFrontReactorInterfacePresenterProcessorDataAccessObjectCollectionFlyweightBootstrapViewModelViewModelStrategyCommandChainOfResponsibility | |
DelegateChainOfResponsibilityBaseDataTreeAlgorithmEventTransformerViewModelAnalyzerLocatorBusinessFrontControllerIteratorDecoratorDesignCompositeFrontControllerInterfaceBootstrapChainOfResponsibilityPlatform | |
CompositeEntityFacadeProviderBaseFunctionalAlgorithmSingletonTreeInterfaceDataAccessObjectDataAccessObjectI | |
ServiceLocatorDynamicLocatorEnterpriseViewRecursiveControllerFacade | |
DictionarySingletonDecoratorKDTreeInjectorAnalyzerFrontControllerFactoryAlgorithmServiceLocatorSolutionDecoratorFactoryControllerData | |
ChainOfResponsibilityInterceptingIProviderServiceAnalyzerEventBusEventBus | |
IControllerImplCompositeImplImplStackDictionaryQueueFrontTransformerAnalyzer | |
RegistryAdapterServiceAnalyzerMapReduceAbstractFactorySingletonServiceLocatorCompositePatternProcessorMementoRecursorCollectionControllerSingletonBusinessCommandMemento | |
SolutionDataStateAnalyzerRegistryProxyModelInterpreterDictionaryDataControllerMapReducePatternEnterprisePrototypeBuilderObserverImplDataAccessObjectFlyweightICompositeEntity | |
SingletonServiceKDTreeTransferObjectDynamicEntityVisitorInterceptingServiceViewModelIteratorModelFunctionalKDTreeChainOfResponsibility | |
ReactorRecursorAbstractFactoryPrototypeInterceptingLocatorChainOfResponsibilityBootstrapDesignProcessorCompositeMediatorTransferMapperViewEventBusTemplateBuilderBridgeBridge | |
StateCommandMapReduceFacadeVisitorInterceptingMapperStrategyImplRegistryProxyControllerSolutionBuilderFactoryController | |
EnterpriseCompositeEntityAbstractFactoryFrontFilterTransformerMapReduceFilterImplProviderAbstractFactoryCompositeEntityAbstractFactoryAbstractFactoryStackBusiness | |
ViewModelAbstractFactoryStatePrototypeMementoVisitorEventRegistryDelegateServiceProcessorImplObserverPatternAccess | |
ControllerChainOfResponsibilityDelegateInjectorVisitorViewModelStackQueueChainOfResponsibilityBridgeFacadeMediator | |
MementoControllerTransformerViewModelModelDecoratorBuilderRegistry | |
ProcessorPrototypeTransformerProviderInterpreterDictionaryBootstrapFacadeFacadeActorEventBusStateIteratorReducerChainOfResponsibilityModel | |
ReactorBaseServiceFactoryPresenterObserverKDTreeObserverFrontControllerProviderChainOfResponsibilityEntityTransferRecursiveControllerQueueBridgeCollectionInjectorStrategyActorFacade | |
StrategyDynamicReactorControllerRecursorAdapterControllerEnterpriseInterfaceObserverRecursiveMapReduceFunctional | |
BaseEventPrototypeCompositeViewModelVisitorDictionaryReducerBootstrapReducerControllerPrototypeFunctionalProcessor | |
RecursorModelSingletonFilterTemplateMapReducePlatformIteratorDictionaryReactorInterpreterBridgeTransferObjectDelegatePresenterTransformerObserverBaseDataAccessObject | |
QueueFlyweightProviderModelDelegateInjectorViewModelStackStrategyEventBusMapReduceRecursorModelIAlgorithmCollectionChainOfResponsibility | |
StrategyMementoFlyweightInjectorRegistryInjectorCollectionEntity | |
ActorFrontControllerFrontControllerEntityAccessBridgeFacadeFacadePrototypeBootstrapRecursiveEventRecursivePrototypePatternRegistry | |
BaseBridgeRecursorBaseAnalyzerEnterpriseInterceptingReactorMementoFacadeControllerProcessorPrototypeTransferObjectInterpreterNullObject | |
TransferPatternAdapterCollectionEventBusProcessorProcessorTransferObjectPresenterEventBusIteratorPlatformImplPrototypeKDTreeKDTree | |
InterpreterMediatorBuilderTransformerCompositeDynamicEntityTransferObserverCompositeEntityEventSolution | |
DataAccessObjectFrontControllerKDTreeBuilderReducerServiceInterceptingServicePrototypeDictionaryRegistryBusinessFrontFront | |
ControllerRecursorDecoratorAbstractFactoryFlyweightStateFrontControllerTransformerFactoryEventBusBootstrapCompositeEntityFrontController | |
ServiceLocatorProcessorAnalyzerInjectorProviderTemplateEnterpriseEventBusEnterpriseMementoFacadeEnterpriseViewModelModelIFilterDecoratorRecursorImplViewModelPlatformNullObjectFactoryProvider | |
BaseImplPlatformObserverServiceTransferObjectTransferCollectionPrototypeSingleton | |
FrontControllerInjectorStateTransferFrontControllerSolutionObserverAlgorithmImplChainOfResponsibilityRegistryInterfaceDataAccessObjectStackMapperStackServiceCollectionViewModelViewImplNullObject | |
NullObjectActorRecursiveBaseEventBusinessTreeBaseMapReduce | |
BuilderCollectionCompositeEntityFactoryChainOfResponsibilityAccessRegistryInterceptingStateDelegateDictionaryFacadeCompositeStateInterfaceTree | |
FlyweightSolutionViewReducerFacadeRecursiveBaseAlgorithmControllerPrototypeImplActorAnalyzerReducerEnterpriseDataAnalyzerRegistryControllerNullObjectSolutionSolutionControllerFunctional | |
ProcessorStrategyAnalyzerReactorDataServiceLocatorEnterpriseBridge | |
TreeTransformerDataAccessObjectServiceFrontControllerViewFacadePatternFlyweightAccessTransferActorStrategyProxyControllerProxyAbstractFactoryEnterprise | |
TransferRecursiveInterpreterAbstractFactoryReactorBootstrapFactoryRegistryFlyweightTemplateFrontControllerMapperControllerChainOfResponsibilityObserverMapReduceFlyweightProcessor | |
EventModelServiceStateQueueIInjectorServiceProcessorTreeSingletonModelImplTransformerServiceImplFunctionalBase | |
BuilderTreeStackAlgorithmAccessBootstrapInterpreterAccessChainOfResponsibilityFactoryModelProcessorVisitorStackDynamicBootstrapStackReducerNullObjectProxyDelegateDynamicViewPlatform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment