Skip to content

Instantly share code, notes, and snippets.

View Jrakesh's full-sized avatar

Rakesh Jha Jrakesh

  • India
View GitHub Profile
@Jrakesh
Jrakesh / ruby-rails-installation
Created February 4, 2022 17:58
This lists out all the steps for successful ruby rails installation with dev tools on Windows.
Step-By-Step Installation on Windows Machine:-
Install latest release GIT bash on Windows 64-bit - https://git-scm.com/downloads
Install Sublime Text 3 on Windows - https://www.sublimetext.com/download
Install ruby v2.6.3 on Windows - https://rubyinstaller.org/downloads/archives/
Install MSYS2 for dev tools on Windows and follow the installation steps mentioned here - https://www.msys2.org/
Open Windows CMD and run - `ridk install` > Select Option-3 > After installation of packages > Press Enter
Run on MSYS2 terminal - `pacman -S base-devel mingw-w64-x86_64-toolchain`
Open Windows CMD and run - `ridk exec pacman -S mingw-w64-x86_64-libxslt`
Run on Windows CMD - `gem install nokogiri --platform ruby -- --use-system-libraries`
#!/usr/bin/env ruby
def rakesh_flatten(input, level = -1)
result = []
def result.recursive(input, level)
input.each do |ele|
if Array === ele && level != 0
recursive(ele, level - 1)
else
self << ele

Authored on Sep 2015

To make sure we hire a top class rubyist, and -- to select the cream of the crop -- these set of questions are specifically written for such interview, kind of ruby benchmark. Hiring a candidate who has the correct grasp on the concepts in 30 minutes of the interview duration is a challenge altogether. I hope this help all folks.

High expectations

Our expectations are generally high while interviewing and candidates will give you a variety of responses based on their experience and knowledge. So it's up to the interviewer to decide the correctness of the answers.

There can be many possible approaches to these questions -- some aren't mentioned here. This list is not complete, by any means and I welcome your suggestions to this.