I hereby claim:
- I am rcorreia on github.
- I am rtco (https://keybase.io/rtco) on keybase.
- I have a public key ASBYdEQ8CSsJzS_g3UjAF6HkT0ifGzR3wjXX_ppsurWYoQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import json | |
| import os | |
| from optparse import OptionParser | |
| import requests | |
| import sys | |
| import logging as log | |
| __author__ = 'ravi' | |
| API_URL = 'https://github.com/api/v3/repos/{}/{}/releases' |
| # This is a short collection of tools that are useful for managing your | |
| # known_hosts file. In this case, I'm using the '-f' flag to specify the | |
| # global known_hosts file because I'll be adding many deploy users on this | |
| # system. Simply omit the -f flag to operate on ~/.ssh/known_hosts | |
| # Add entry for host | |
| ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts | |
| # Scan known hosts | |
| ssh-keygen -f /etc/ssh/ssh_known_hosts -H -F github.com |
| <?php | |
| class phpVBoxConfig { | |
| /* Username / Password for system user that runs VirtualBox */ | |
| var $username = 'vbox'; | |
| var $password = 'CHANGE_ME'; | |
| /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */ | |
| var $location = 'http://localhost:18083/'; |
First install Virtualbox
sudo pico /etc/apt/sources.list.d/virtualbox.listdeb http://download.virtualbox.org/virtualbox/debian saucy contrib non-freewget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -sudo apt-get updatesudo apt-get install dkms unzipsudo apt-get install virtualbox-4.3 --no-install-recommendswget http://download.virtualbox.org/virtualbox/4.3.6/Oracle_VM_VirtualBox_Extension_Pack-4.3.6.vbox-extpacksudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.6.vbox-extpack| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| sinon.Container = function(namespace) { | |
| this.namespace = namespace; | |
| this._cache = []; | |
| this._mocks = []; | |
| this.container = namespace.__container__; | |
| }; | |
| var mock = function(context, method, args) { | |
| var object = context[method].apply(context, args); | |
| return mockObject(context, object); |
| #!/usr/bin/env ruby | |
| # | |
| # Originally written by http://redartisan.com/tags/csv | |
| # Added and minor changes by Gavin Laking | |
| # Rewritten by Andrew Bennett for Ruby 1.9 | |
| # | |
| # Usage: ruby csv_to_fixture.rb file.csv [--json] | |
| # | |
| # "id","name","mime_type","extensions","icon_url" | |
| # "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif" |
| #!/usr/bin/env ruby | |
| # | |
| # Originally written by http://redartisan.com/tags/csv | |
| # Added and minor changes by Gavin Laking | |
| # Remove ::Reader and it shall work in Ruby 1.9.x | |
| # | |
| # "id","name","mime_type","extensions","icon_url" | |
| # "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif" | |
| # "2","image/tiff","image/tiff","|tiff|tif|","/images/icon/blank.png" | |
| # |
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.
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.