Skip to content

Instantly share code, notes, and snippets.

View gillien's full-sized avatar

Guillaume Illien gillien

View GitHub Profile
@tomas-stefano
tomas-stefano / Capybara.md
Last active May 21, 2024 02:09
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@ryansobol
ryansobol / gist:5252653
Last active November 22, 2023 11:53
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.

@gillien
gillien / TextmasterApi.java
Created October 31, 2012 07:13
Access TextMaster API with different languages
//date formatting
import java.util.Date;
import java.text.SimpleDateFormat;
import java.util.TimeZone;
//http request
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.DataOutputStream;
@mkuklis
mkuklis / mongoid_rake.rake
Created November 12, 2010 18:12
few rake tasks to interact with mongodb via mongoid
namespace :mongo do
def confirm(message)
print "\n#{message}\nAre you sure? [y/n] "
# STDIN is not supported on heroku :/
raise 'Aborted' unless STDIN.gets.chomp == 'y'
end
desc "gets database"
task :db => :environment do