Skip to content

Instantly share code, notes, and snippets.

View swombat's full-sized avatar

Daniel Tenner swombat

View GitHub Profile
require 'rubygems'
require 'nokogiri'
require 'open-uri'
class Harvester
attr_accessor :output, :links_fetched
def initialize(args)
super()
@options = {
usage: /[... snip ...]/current/script/delayed_job.rb <command> [options]
Where <command> is one of start, stop, restart or status
[options] are additional options passed to the underlying process
create_table "audit_log_events", :force => true do |t|
t.integer "project_id"
t.integer "user_id"
t.integer "object_id"
t.string "object_type"
t.string "event_type"
t.string "display_string"
t.text "data_marshalled"
t.datetime "created_at"
t.datetime "updated_at"
<%= form_for @email_subscription do |f| -%>
<%= f.error_messages :header_message => "Can't subscribe", :message => "This went wrong:" %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label "Your time zone", :for => :time_zone_city %>
<%= f.time_zone_select :time_zone_city %>

One advice may be good counsel but following all opinions is stupid without mistake. A camel is a horse drawn by a committee. Listen to advice without interruption, and follow your own judgement. This reminds me of a story:

One day, the Mullah went to the market in Konya with his son. As they only had one mule, the son mounted it and the Mullah walked.

A neighbour was appalled. "Now this is education! The old man walks while the lazy youngster rides!"

"I told you, father", said the boy, and they changed places.

Not far from there, a group of passers by shouted after them: "Tyrant! You, a full-grown man, ride the donkey while your child sweats and stumbles in the dust!"

`killall -9 firefox-bin`
DatabaseCleaner.strategy = :truncation, {:except => %w[ price_points ]}
Spec::Runner.configure do |config|
config.include Capybara
config.use_transactional_fixtures = false
Capybara.current_driver = :selenium