omnicalc_ruby

 by   appdev-summer15 Ruby Version: Current License: No License

kandi X-RAY | omnicalc_ruby Summary

kandi X-RAY | omnicalc_ruby Summary

omnicalc_ruby is a Ruby library. omnicalc_ruby has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

The goal of this project is to get more practice with writing Ruby programs; but now, you are going to see your output in the browser rather than in Terminal. In order to achieve this, we're going to write and execute our Ruby programs using a different technique; in the past, we used to create a file and name it whatever we wanted, write the code into the file, and then execute the code with ruby whatever.rb from Terminal. Now, you are going to write your Ruby code inside specific files which already exist. You will execute the code simply by visiting a particular URL in your browser. Your visit will trigger the execution of the Ruby code, and the output will appear in your browser window.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              omnicalc_ruby has a low active ecosystem.
              It has 0 star(s) with 31 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              omnicalc_ruby has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of omnicalc_ruby is current.

            kandi-Quality Quality

              omnicalc_ruby has no bugs reported.

            kandi-Security Security

              omnicalc_ruby has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              omnicalc_ruby does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              omnicalc_ruby releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of omnicalc_ruby
            Get all kandi verified functions for this library.

            omnicalc_ruby Key Features

            No Key Features are available at this moment for omnicalc_ruby.

            omnicalc_ruby Examples and Code Snippets

            No Code Snippets are available at this moment for omnicalc_ruby.

            Community Discussions

            No Community Discussions are available at this moment for omnicalc_ruby.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install omnicalc_ruby

            You'll find a brief Getting Started video in Canvas under Pages > Additional Videos. Read the instructions below carefully also.
            First fork this repo, and then clone your fork to your computer.
            Navigate to the folder you downloaded in Terminal.
            Open up the entire folder in Sublime.
            In Terminal, bundle install
            If you receive an error on the bundle install, let me know right away.
            Once that is complete, rails server
            If the server doesn't start up successfully, you probably have an old app running somewhere. Find the old window or tab and close it. Then try rails server from within the omnicalc folder again.
            Once the server has successfully started up, in Chrome, go to http://localhost:3000.
            If all went well, you should see the New Word Count form. If not, let me know right away.
            Type in some text and submit the form.
            On the results page, you will currently see just a bunch of placeholders.
            In Sublime, find the /app/controllers/calculations_controller.rb file.
            Locate the part of the file that looks like this: def word_count @text = params[:user_text] @special_word = params[:user_word] # ================================================================================ # Your code goes below. # The text the user input is in the string @text. # The special word the user input is in the string @special_word. # ================================================================================ @character_count_with_spaces = "Replace this string with your answer." @character_count_without_spaces = "Replace this string with your answer." @word_count = "Replace this string with your answer." @occurrences = "Replace this string with your answer." end
            The code between the def word_count and end is the program that gets executed. I have already written some code that retrieves the inputs from the form and places them into variables for you to use, @text and @special_word.
            Your job is to write code below the comments and, ultimately, store the correct values in the variables I created at the bottom of the method. For example, to solve the first part, call .length on the user's input, @text, and assign the result to @character_count_with_spaces. @character_count_with_spaces = @text.length
            You have to figure out how to calculate the correct value for the rest: @character_count_without_spaces, @word_count, and @occurrences. Don't change the names of these variables; if you do, your results won't appear in the browser in the end.
            Refresh the results page in your browser to re-run your code and see new output.
            You can write as much or as little code as it takes to produce the correct answer; create intermediate variables if you want, or do anything else that you learned about from Pine (except we don't use puts and gets for output and input anymore). It's all just the same Ruby as before.
            Similarly, next work on def loan_payment and check your output by submitting the form located at http://localhost:3000/loan_payment/new
            Some tasks are easier, some are much harder. For example, in the Descriptive Statistics calculator, finding the mode (the number that occurs most frequently in a list of numbers) is surprisingly hard. Do your best, but don't get discouraged if you can't quite solve it.
            For the mode calculation, just worry about the simplest case; when there's one number that occurs most frequently, that should be shown as the mode. I won't be testing the case that there's a tie.
            In the essential_ruby repository from class, there are some comments in 8_return_values.rb and challenge_1.rb that may be helpful for finding some of the formulae you'll need.
            Ask lots of questions!

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/appdev-summer15/omnicalc_ruby.git

          • CLI

            gh repo clone appdev-summer15/omnicalc_ruby

          • sshUrl

            git@github.com:appdev-summer15/omnicalc_ruby.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Ruby Libraries

            rails

            by rails

            jekyll

            by jekyll

            discourse

            by discourse

            fastlane

            by fastlane

            huginn

            by huginn

            Try Top Libraries by appdev-summer15

            html_intro

            by appdev-summer15HTML

            essential_ruby

            by appdev-summer15Ruby

            bootstrap_practice

            by appdev-summer15HTML

            html_practice

            by appdev-summer15HTML

            rock_paper_scissors

            by appdev-summer15Ruby