Skip to content

Instantly share code, notes, and snippets.

@javiertoledo
Created October 3, 2013 20:52
Show Gist options
  • Save javiertoledo/6816939 to your computer and use it in GitHub Desktop.
Save javiertoledo/6816939 to your computer and use it in GitHub Desktop.
A positive text generator for blasphemy gem :-)
module Faker
class PositiveIpsum < CustomIpsum
def initialize
@wordlist = %w(help hope children saving life people good water justice peace schools books well save provide serve health care sustain aid encourage guide support provide warm food improve protect)
@paragraph_list = [
"Our prime purpose in this life is to help others. And if you can't help them, at least don't hurt them.",
"The best way to not feel hopeless is to get up and do something. Don’t wait for good things to happen to you. If you go out and make some good things happen, you will fill the world with hope, you will fill yourself with hope.",
"The purpose of life is not to be happy. It is to be useful, to be honorable, to be compassionate, to have it make some difference that you have lived and lived well.",
"The best antidote I know for worry is work. The best cure for weariness is the challenge of helping someone who is even more tired. One of the great ironies of life is this: He or she who serves almost always benefits more than he or she who is served.",
"I don't want to live in the kind of world where we don't look out for each other. Not just the people that are close to us, but anybody who needs a helping hand. I cant change the way anybody else thinks, or what they choose to do, but I can do my bit.",
"Love is not patronizing and charity isn't about pity, it is about love. Charity and love are the same -- with charity you give love, so don't just give money but reach out your hand instead.",
"If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.",
"When we love, we always strive to become better than we are. When we strive to become better than we are, everything around us becomes better too.",
"What you do makes a difference, and you have to decide what kind of difference you want to make.",
"It is good to love many things, for therein lies the true strength, and whosoever loves much performs much, and can accomplish much, and what is done in love is well done.",
"You may say I'm a dreamer, but I'm not the only one. I hope someday you'll join us. And the world will live as one.",
"Being unwanted, unloved, uncared for, forgotten by everybody, I think that is a much greater hunger, a much greater poverty than the person who has nothing to eat.",
"The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little."
]
def paragraph
if @paragraph_list.respond_to?(:sample)
@paragraph_list.sample
else
@paragraph_list[rand(@paragraph_list.size)]
end
end
def paragraphs(count)
(1..count).map{paragraph}.join(" \n")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment