mdeanda / lorem Goto Github PK
View Code? Open in Web Editor NEWAn extremely useful Lorem Ipsum generator!
License: MIT License
An extremely useful Lorem Ipsum generator!
License: MIT License
It would be nice to have a Lorem.getEmail()
that returns a random email address (based on a set of firstname, lastname and domain URL, such as gmail.com, yahoo.com.....).
loremIpsum.getParagraphs(0, 6)
places two spaces after each dot. That's a little odd :-)
Nonnostrum tractatos autem reprimique euismod pharetra animal. Omnesqueeloquentiam utamur lobortis.
^^
Great package, btw :-)
It would be nice to have a Lorem.getCountry()
that returns a random country (based on a list of countries such as http://www.state.gov/misc/list/). This would be complementary to Lorem.getStateAbbr()
and Lorem.getZipCode()
I like to encourage you to push you library to Maven Central. There is just one other library like this and it would be very helpful if your library is available from the central repository.
Hi, just encountered the following issue:
Problem: Whitespaces in RFC 5322 local parts of the mail address. It's allowed by RFC 5322 but uncommon to use in a "simple" API.
javax.mail.internet.AddressException: Local address contains control or whitespace in string
lester.de la [email protected]''`
The code behind this Exception created random mails for testing:
Lorem lorem = LoremIpsum.getInstance();
MimeMessage multipartMessage = new MimeMessage(...);
multipartMessage.setFrom(new InternetAddress(lorem.getEmail()));
...
Solution: Maybe change the "default" behaviour to generate local parts without whitespaces?
Great code! I was wondering under what kind of license you published your generator?
From time to time, especially when do some new tech test or demo, we need use random Class. Only String is not enough.
What about add some random simple classes, such as Animal(Interface), Cat(class implement Animal), Dog(class implement Animal), and can make random of them.
BTW, I really like your lib, thanks a lot!
Jiming
It would be nice to have a Lorem.getCity()
that returns a random city (based on a list of cities). This would be complementary to Lorem.getStateAbbr()
and Lorem.getZipCode()
This is pretty good, but it would be nice if the loreum.txt file could be replaced by feeding the Constructor a file. I wanted to have company name type things in there like arrow star micro computer soft com etc. or maybe if we could make custom categories and feed them words.
Any chance of publishing a release - you have unreleased changes that we need that have been sitting unreleased for years :)
(namely constructor that takes a Random)
It would be nice to have a Lorem.getURL()
that returns a random URL (based on a set of based URL, such as bit.ly, google.com, yahoo.com.....).
And, why not, having a Lorem.getURL(int min, int max)
that would return a random number of query parameters. For example, calling Lorem.getURL(1, 2)
could return http://www.google.com?lorem=ipsum&sit=amet
Hey there!
Thinking of picking up this library for my project, but I was wondering if there's a light version available that only contains the actual lorem dummy text?
Just for those like me who don't need all that phone and city stuff and would like to keep their imports as slim as possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.