GithubHelp home page GithubHelp logo

randomusercontent's Introduction

Random User Content (ryc)

Generates random user content in your applications. Great for prototyping!

Huh?

Currently ryc can puts a comment, author or URL from a random youtube video. Each time its called the content will be different. More services and content types might be available in the future.

Buy It

gem install ryc

Do It

require 'ryc'
Ryc::Generate.comment

Currently available methods:

Generate.comment
Generate.username
Generate.url

Upgrade It

  • Add more platforms as content sources (twitter, facebook, ...)
  • Add a method that outputs a hash of all content types from the same source page instead of picking a random source for each type.
  • Remove dependency on randomyoutubecomment.com by generating a random youtube id from within the gem itself.
  • Optional arguments:
    • length(n1, n2) to select only content with a total character count between n1 and n2.
    • (rating(pg|pg13|r|nc17) to choose the level of profanity that best suites your needs. Pass nc17 to puts raw unfiltered content.

Fix It

Gladly accepted in the form of pull requests :)

Platform Support

It works on ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]. The end.

Credits

Big up to http://randomyoutubecomment.com/ for figuring out how to successfully load a random youtube video in under 20 minutes!

License

def nil
end

randomusercontent's People

Contributors

sh78 avatar

Watchers

 avatar  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.