Skip to content

Instantly share code, notes, and snippets.

View rah00l's full-sized avatar
🏠
Working from home

rahul patil rah00l

🏠
Working from home
View GitHub Profile
@rah00l
rah00l / bootstrap-filters.markdown
Created September 29, 2022 03:24
Bootstrap Filters
@rah00l
rah00l / remove_failed_jobs.rb
Last active September 4, 2016 16:45
Script to remove failed / errors from resque
## Script to remove failed / errors from resque
class RemoveFailedJobs
def self.from_resque(offset = 0, limit = 5000, name='Jobs::SampleJob')
# Get the number of failed jobs:
puts "Total number of failed jobs #{Resque::Failure.count}"
# Returns an array of all the failures, paginated
all_failures = Resque::Failure.all(offset, limit )
# Collect failures with array index as 'slot'
@rah00l
rah00l / application.html.erb
Created September 4, 2016 16:34 — forked from suryart/application.html.erb
Rails 4 flash messages using Twitter Bootstrap(bootstrap-sass: https://github.com/thomas-mcdonald/bootstrap-sass). An improved version of https://gist.github.com/roberto/3344628
// layout file
<body>
<div class="container">
<%= flash_messages %>
<%= yield %>
</div><!-- /container -->
</body>
@rah00l
rah00l / bulk_record_generator.rb
Created February 26, 2016 18:36
Populate 1 Million Records
#-----------IT TAKES AROUND 20 MIN -------------------
## Associations are as follw ::
## Book ---> (has_many) FileSubmissions
## FileSubmission --> (has_one) FileDetail
## Flush all dependent records:
FileDetail.delete_all
FileSubmission.delete_all

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.