Skip to content

Instantly share code, notes, and snippets.

Daniel Tenner swombat

Block or report user

Report or block swombat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View harvester.rb
require 'rubygems'
require 'nokogiri'
require 'open-uri'
class Harvester
attr_accessor :output, :links_fetched
def initialize(args)
super()
@options = {
View gist:953616
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
View gist:795273
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"
View new.html.erb
<%= 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 %>
View Riding to market.markdown

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!"

View gist:670560
`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
You can’t perform that action at this time.