This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VER="0.94.2"; | |
SCRIPTTITLE="PV - HVM - version $VER"; | |
RED=$(tput setaf 1) | |
GREEN=$(tput setaf 2) | |
NORMAL=$(tput sgr0) | |
# Configure logging | |
tmp="/tmp" | |
logfile="$tmp/$(basename $0).$$.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here are the categories our engineers consider when evaluating your coding test: | |
- Object-oriented design | |
- Naming | |
- Algorithms | |
- Unit testing | |
- Style | |
- Robustness | |
Your code receives a rating between 1 and 4 in each category. We considered sharing the entire rubric but that might be just a little too bold. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem "json_pure" | |
gem "rest-client" | |
gem "pry" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
require "timeout" | |
require "watir-webdriver/extensions/wait" | |
describe "The registration feature" do | |
before(:each) do | |
@browser = Watir::Browser.new(:firefox) | |
authenticate_with_paypal | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "activesupport", "2.3.5" | |
gem "haml", "2.2.16" | |
gem "json", "1.2.0" | |
gem "rake", "0.8.7" | |
gem "sequel", "3.7.0" | |
gem "sinatra", "0.9.4" | |
gem "sqlite3-ruby", "1.2.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#listtabs > ul > li:first-child, #listtabs > ul > li:nth-child(3) { | |
display: none | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "test/unit" | |
require "rubygems" | |
gem "activerecord", :version => "2.3.4" | |
require "active_record" | |
ActiveRecord::Base.establish_connection( | |
:adapter => "sqlite3", | |
:dbfile => ":memory:" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if request.env["HTTP_USER_AGENT"] =~ /MSIE/ && Rails.env == "development" %> | |
<div style="position:absolute; left: 0; top: 0; background-color: #ffc; padding: 4px 10px;"> | |
<a href="javascript:var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);">Firebug</a> | |
</div> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require "rubygems" | |
require "rbosa" | |
safari = OSA.app "Safari" | |
while(url = STDIN.gets) do | |
url.chomp! | |
STDERR.puts "Handling #{url}..." |