Last active
April 2, 2023 10:13
-
-
Save dacr/af64aff158cee6e97e2201aab696a848 to your computer and use it in GitHub Desktop.
lorem ipsum generator / published by https://github.com/dacr/code-examples-manager #2ae6a463-3266-49e5-ac47-a167ce3faddd/34e6764ccecb14b3c289fed8f6ee7bbae2ec0b24
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
// summary : lorem ipsum generator | |
// keywords : scala, loremipsum | |
// publish : gist | |
// authors : David Crosson | |
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// id : 2ae6a463-3266-49e5-ac47-a167ce3faddd | |
// created-on : 2020-03-27T21:29:05Z | |
// managed-by : https://github.com/dacr/code-examples-manager | |
// execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc' | |
import $ivy.`fr.janalyse::lorem-ipsum:1.0.4` | |
import loremipsum._ | |
val story = LoremIpsum.generate(wordCount = 242, alwaysStartWithLorem = true, truncate = false, sentencesBased=true, randomize=true) | |
println(story.map(_.text).mkString("\n\n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment