Money Collection

Mr.savani is collecting a money from n students for a trip,  like collect $1 from 1st student, $3 from 3rd student and so on.. but it should not include k (unlucky number) into sum. if it includes k into sum, then ignore that student   Example: n = number of student, k = unlucky number ...

How to use Geolocalise gem

Welcome to Geolocalise gem! A Gem which help you to find out current city,state,country,postal-code and country-code with simple methods call. Links: Github link : Geolocalise RubyGem link : Geolocalise Installation Add this line to your application’s Gemfile: gem \'geolocalise\' And then execute: $ bundle Or install it yourself as: $ gem install geolocalise Usage In ...

Testing Rspec with Capybara and Selenium

How to set up Capybara and Selenium in ruby on rails application? First of all add gems into gemfile: gem \'capybara\' gem \"selenium-webdriver\" gem \'chromedriver-helper\' After Adding new gem, its time to bundle install bundle install Now, We need to tell application that we are using capybara with Rspec testing, to do so we need ...

Git log..!!!

16. March 2015 Github 10
If you are tired of this old and bored git log screen? So Its simple, if you want to change it, Just type in: git log --graph --pretty=format:\'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\' --abbrev-commit Or, if you want to see the lines that changed git log -p If you want to see one line commits, ...

Important ruby gem list

To Create admin panel: ActiveAdmin :  rubygem | github Activeadmin-axlsx :    rubygem | github AES encryption / decryption Ruby gem Aescrypt : rubygem | github Mailing Functionality: Letter Opener : rubygem | github Calculate difference between two given time: Time Diff : rubygem | github Time Difference : rubygem | github To check the quality of rails code: Rails best practices ...

How to install angularJS in windows/linux

HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop. AngularJS is a toolset for building the framework most suited to your application ...