GithubHelp home page GithubHelp logo

drewburlingame / wafflegenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simoncropp/wafflegenerator

0.0 0.0 0.0 904 KB

Produces text which, on first glance, looks like real, ponderous, prose; replete with clichés.

License: BSD 3-Clause "New" or "Revised" License

C# 100.00%

wafflegenerator's Introduction

WaffleGenerator

Build status NuGet Status NuGet Status

Produces text which, on first glance, looks like real, ponderous, prose; replete with clichés.

See Milestones for release notes.

Example content:

The Aesthetic Of Economico-Social Disposition

"In this regard, the underlying surrealism of the take home message should not 
divert attention from The Aesthetic Of Economico-Social Disposition"
(Humphrey Yokomoto in The Journal of the Total Entative Item (20044U))

On any rational basis, a particular factor, such as the functional baseline, the 
analogy of object, the strategic requirements or the principal overriding programming 
provides an interesting insight into the complementary functional derivation. 
This trend may dissipate due to the mensurable proficiency.

This output can be used in similar way to Lorem ipsum content, in that it is useful for producing text for build software and producing design mockups.

Based on the awesome work by Andrew Clarke outlined in The Waffle Generator.

Code based on SDGGenerators - Red Gate SQL Data Generator Community Generators.

Blazor App

The Blazing Waffles app allows the generation of waffle text online.

Main Package - WaffleGenerator

https://nuget.org/packages/WaffleGenerator/

Usage

The WaffleEngine can be used to produce Html, text or Markdown:

Html

var text = WaffleEngine.Html(
    paragraphs: 2,
    includeHeading: true,
    includeHeadAndBody: true);
Debug.WriteLine(text);

snippet source | anchor

Text

var text = WaffleEngine.Text(
    paragraphs: 1,
    includeHeading: true);
Debug.WriteLine(text);

snippet source | anchor

Markdown

var markdown = WaffleEngine.Markdown(
    paragraphs: 1,
    includeHeading: true);
Debug.WriteLine(markdown);

snippet source | anchor

WaffleGenerator.Bogus

Extends Bogus to use WaffleGenerator.

https://nuget.org/packages/WaffleGenerator.Bogus/

Usage

The entry extension method is WaffleHtml() or WaffleText() or WaffleMarkdown():

var faker = new Faker<Target>()
    .RuleFor(
        property: u => u.Title,
        setter: (f, u) => f.WaffleTitle())
    .RuleFor(
        property: u => u.Property1,
        setter: (f, u) => f.WaffleHtml())
    .RuleFor(
        property: u => u.Property2,
        setter: (f, u) => f.WaffleHtml(
            paragraphs: 4,
            includeHeading: true))
    .RuleFor(
        property: u => u.Property3,
        setter: (f, u) => f.WaffleText())
    .RuleFor(
        property: u => u.Property4,
        setter: (f, u) => f.WaffleText(
            paragraphs: 4,
            includeHeading: false));

var target = faker.Generate();
Debug.WriteLine(target.Title);
Debug.WriteLine(target.Property1);
Debug.WriteLine(target.Property2);
Debug.WriteLine(target.Property3);
Debug.WriteLine(target.Property4);

snippet source | anchor

Icon

Waffle designed by Made by Made from The Noun Project

wafflegenerator's People

Contributors

dependabot-preview[bot] avatar simoncropp avatar dependabot[bot] avatar dependabot-support avatar actions-user avatar olanmj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.