Code Monkey home page Code Monkey logo

shake's Introduction

Shake

Application to read in some plain text files, and generate (in manual or auto mode) a document of specified length. The first word is selected at random (auto) or selected by the user (manual), and subsequent words are selected randomly from the list of words that follow the preceeeding word from the source text.

There are three command line parameters used:

  1. 'auto' or 'manual'. If manual is specified, you will be prompted to select the first word
  2. number of words to output (an integer)
  3. filename of the config file (which contains a list of files to read, one filename per line)

Directory path for files is: <userDirectory>/IdeaProjects/Shake/

Example directory:

(base) [531] ~/IdeaProjects/Shake $ ll
total 864
-rw-r--r--@ 1 i834513  staff  141939 Jun 14 01:06 combo.txt
-rw-r--r--@ 1 i834513  staff       9 Jun 14 18:25 config1.txt
-rw-r--r--@ 1 i834513  staff      13 Jun 14 18:27 config2.txt
-rw-r--r--  1 i834513  staff   53033 Jun 14 01:18 const-dec.txt
-rw-r--r--@ 1 i834513  staff   44952 Jun 14 00:11 constitution.txt
-rw-r--r--@ 1 i834513  staff    8120 Jun 13 23:22 declaration.txt
-rw-r--r--@ 1 i834513  staff   88904 Jun 14 01:05 macbeth.txt

Example command line: java Shake auto 650 config1.txt

shake's People

Contributors

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