Skip to content

Instantly share code, notes, and snippets.

View messutied's full-sized avatar
🎯
Focusing

Eduardo Messuti messutied

🎯
Focusing
View GitHub Profile
@messutied
messutied / gist:32c2e740caf124673f1e
Created January 21, 2016 01:01 — forked from ryansobol/gist:5252653
15 Questions to Ask During a Ruby Interview

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.

@messutied
messutied / gist:4965443
Created February 16, 2013 03:43
YQL Queries
select * from yahoo.finance.historicaldata where symbol = "BMPS.MI" and startDate = "2009-09-11" and endDate = "2010-03-10"
// Usage:
// var bgcolor = $("#element-id").css("background-color");
// var darker_bgcolor = addRGB(bgcolor, -50);
function addRGB(rgb, n) {
var spl = rgb.split(",");
var r = spl[0].replace("rgb(", "");
var g = spl[1].replace(" ", "");
var b = spl[2].replace(" ", "").replace(")", "");
r = r * 1 + n;
@messutied
messutied / jquery.basicPlugin.js
Last active August 29, 2015 14:02
jQuery Plugin Boilerplate
(function( $ ) {
var settings = {};
// private methods
var somePrivateMethod = function() {
}
// public methods
var methods = {
init: function(options) {