Giter Club home page Giter Club logo

subreddit's Introduction

subreddit

Generates a random subreddit on the command line

This repository holds the source code for the subreddit ruby gem.

If you have ruby installed on your machine you shoud just be able to type

> gem install subreddit

to start using this gem.

Ruby gem

Installing the subreddit gem should include all required dependencies.

For more information see: subreddit at rubygems.org

Running the executable

To run the command line interface, first install the gem and then type:

> subreddit

from anywhere on your command line. This generates a random subreddit to your terminal.

Bonus! First link from the subreddit!

I've also included the ability to also print the title of the first link from the subreddit. If you wish to use this option, you'll have to modify the gem.

In the

lib/subreddit.rb

file, change the first line from

require_relative 'subreddit_generator.rb'

to

require_relative 'subreddit_generator_with_link.rb'

Once you make this change and save the file, you can run the

> subreddit

command as normal.

Ideas for further exploration:

I hope to modifiy the gem so that you can just type a different command to get the "with link" option. Also I want to take this to the web. More info coming soon!

subreddit's People

Contributors

ilanasufrin avatar

Watchers

 avatar

Forkers

simonseroussi

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.