Skip to content

Instantly share code, notes, and snippets.

#!/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"
@comeara
comeara / hints.txt
Created July 17, 2012 22:39
StreamSend Coding Test
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.
@comeara
comeara / Gemfile
Created June 11, 2012 17:17
Bulk Load AgileZen Stories
source :rubygems
gem "json_pure"
gem "rest-client"
gem "pry"
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
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"
#listtabs > ul > li:first-child, #listtabs > ul > li:nth-child(3) {
display: none
}
require "test/unit"
require "rubygems"
gem "activerecord", :version => "2.3.4"
require "active_record"
ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:dbfile => ":memory:"
)
<% 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 %>
#!/usr/bin/ruby
require "rubygems"
require "rbosa"
safari = OSA.app "Safari"
while(url = STDIN.gets) do
url.chomp!
STDERR.puts "Handling #{url}..."