librelist archives

« back to archive

Not directly related to flask a function lorem-ipsum

Not directly related to flask a function lorem-ipsum

From:
Brice Leroy
Date:
2012-11-26 @ 06:51
Hi guys,

I'll make it short, since it's not directly related to Flask. Was working
on my flask project and needed a lorem-ipsum like generator for testing
purpose (generating post, comments...) but I could only find big industrial
thing (installing new dependancies for testing purpose didn't feel right).
So after a quick check of common nouns, adverbs, verbs... on wikipedia,
here is a simple gist function that will populate your DB with let say...
surprising results.

https://gist.github.com/4146857

Enjoy and feel free to copy, use, modify, sale, print etc...

--
Brice

Re: [flask] Not directly related to flask a function lorem-ipsum

From:
Anthony Ford
Date:
2012-11-26 @ 07:33
If your displaying in your template you can try the lipsum function in
jinja http://jinja.pocoo.org/docs/templates/#lipsum



Anthony Ford,
KF5IBN,
Research Assistant,
Center for Advanced Radio Astronomy,
University of Texas at Brownsville
ford.anthonyj@gmail.com



On Mon, Nov 26, 2012 at 12:51 AM, Brice Leroy <bbrriiccee@gmail.com> wrote:

> Hi guys,
>
> I'll make it short, since it's not directly related to Flask. Was working
> on my flask project and needed a lorem-ipsum like generator for testing
> purpose (generating post, comments...) but I could only find big industrial
> thing (installing new dependancies for testing purpose didn't feel right).
> So after a quick check of common nouns, adverbs, verbs... on wikipedia,
> here is a simple gist function that will populate your DB with let say...
> surprising results.
>
> https://gist.github.com/4146857
>
> Enjoy and feel free to copy, use, modify, sale, print etc...
>
> --
> Brice
>

Re: [flask] Not directly related to flask a function lorem-ipsum

From:
Brice Leroy
Date:
2012-11-26 @ 14:52
Didn't thought about looking in Jinja filter for that purpose. Thanks for
the advice though.


2012/11/25 Anthony Ford <ford.anthonyj@gmail.com>

> If your displaying in your template you can try the lipsum function in
> jinja http://jinja.pocoo.org/docs/templates/#lipsum
>
>
>
> Anthony Ford,
> KF5IBN,
> Research Assistant,
> Center for Advanced Radio Astronomy,
> University of Texas at Brownsville
> ford.anthonyj@gmail.com
>
>
>
> On Mon, Nov 26, 2012 at 12:51 AM, Brice Leroy <bbrriiccee@gmail.com>wrote:
>
>> Hi guys,
>>
>> I'll make it short, since it's not directly related to Flask. Was working
>> on my flask project and needed a lorem-ipsum like generator for testing
>> purpose (generating post, comments...) but I could only find big industrial
>> thing (installing new dependancies for testing purpose didn't feel right).
>> So after a quick check of common nouns, adverbs, verbs... on wikipedia,
>> here is a simple gist function that will populate your DB with let say...
>> surprising results.
>>
>> https://gist.github.com/4146857
>>
>> Enjoy and feel free to copy, use, modify, sale, print etc...
>>
>> --
>> Brice
>>
>
>


-- 
blog: http://www.debrice.com
Time tracking tool: http://alpha.kaaloo.com
Django site generator: http://alpha.djangogenerator.com
linkedin: http://www.linkedin.com/in/bricepleroy

Re: [flask] Not directly related to flask a function lorem-ipsum

From:
Jesaja Everling
Date:
2012-11-26 @ 07:41
Nice share, thanks a lot! It did generate "With work come new man." for 
me, sounds a little bit like a fortune cookie, certainly more 
entertaining than latin!
If you happen to have Django installed, it also comes with a Lorem Ipsum 
generator:

from django.contrib.webdesign import lorem_ipsum

lorem_ipsum.paragraph()
lorem_ipsum.paragraphs(3)
lorem_ipsum.words(20)

Might come in handy one day.


Best Regards,

Jesaja Everling


On 11/26/2012 08:33 AM, Anthony Ford wrote:
> If your displaying in your template you can try the lipsum function in
> jinja http://jinja.pocoo.org/docs/templates/#lipsum
>
>
>
> Anthony Ford,
> KF5IBN,
> Research Assistant,
> Center for Advanced Radio Astronomy,
> University of Texas at Brownsville
> ford.anthonyj@gmail.com <mailto:ford.anthonyj@gmail.com>
>
>
>
> On Mon, Nov 26, 2012 at 12:51 AM, Brice Leroy <bbrriiccee@gmail.com
> <mailto:bbrriiccee@gmail.com>> wrote:
>
>     Hi guys,
>
>     I'll make it short, since it's not directly related to Flask. Was
>     working on my flask project and needed a lorem-ipsum like generator
>     for testing purpose (generating post, comments...) but I could only
>     find big industrial thing (installing new dependancies for testing
>     purpose didn't feel right). So after a quick check of common nouns,
>     adverbs, verbs... on wikipedia, here is a simple gist function that
>     will populate your DB with let say... surprising results.
>
>     https://gist.github.com/4146857
>
>     Enjoy and feel free to copy, use, modify, sale, print etc...
>
>     --
>     Brice
>
>

Re: [flask] Not directly related to flask a function lorem-ipsum

From:
Brice Leroy
Date:
2012-11-26 @ 15:09
Yeah, the english ipsum seems more natural to me and that's true, it really
does feel like a fortune cookie :D

I got carried on and ended up building a name generator too...

https://gist.github.com/4148695


2012/11/25 Jesaja Everling <jeverling@gmail.com>

> Nice share, thanks a lot! It did generate "With work come new man." for
> me, sounds a little bit like a fortune cookie, certainly more
> entertaining than latin!
> If you happen to have Django installed, it also comes with a Lorem Ipsum
> generator:
>
> from django.contrib.webdesign import lorem_ipsum
>
> lorem_ipsum.paragraph()
> lorem_ipsum.paragraphs(3)
> lorem_ipsum.words(20)
>
> Might come in handy one day.
>
>
> Best Regards,
>
> Jesaja Everling
>
>
> On 11/26/2012 08:33 AM, Anthony Ford wrote:
> > If your displaying in your template you can try the lipsum function in
> > jinja http://jinja.pocoo.org/docs/templates/#lipsum
> >
> >
> >
> > Anthony Ford,
> > ford.anthonyj@gmail.com <mailto:ford.anthonyj@gmail.com>
> >
> >
> >
> > On Mon, Nov 26, 2012 at 12:51 AM, Brice Leroy <bbrriiccee@gmail.com
> > <mailto:bbrriiccee@gmail.com>> wrote:
> >
> >     Hi guys,
> >
> >     I'll make it short, since it's not directly related to Flask. Was
> >     working on my flask project and needed a lorem-ipsum like generator
> >     for testing purpose (generating post, comments...) but I could only
> >     find big industrial thing (installing new dependancies for testing
> >     purpose didn't feel right). So after a quick check of common nouns,
> >     adverbs, verbs... on wikipedia, here is a simple gist function that
> >     will populate your DB with let say... surprising results.
> >
> >     https://gist.github.com/4146857
> >
> >     Enjoy and feel free to copy, use, modify, sale, print etc...
>