My Recent Pastes (39 and counting)
Pastes by Mikel Lindsaar (39 and counting)
Below are the 15 most recent pasties by Mikel Lindsaar.
February 01, 2010
10:25PM EDT
by Mikel Lindsaar
unless params[:user_field].blank? session[:value] = params[:user_field] else session[:value] = params[:hidden_field].to_i end
May 29, 2008
9:17PM EDT
by Mikel Lindsaar
View more (7 lines)
# Returns true or false depending on if the OpenBSD # packet filter is running or not Facter.add("pf_running") do setcode do (%x{/sbin/pfctl -si}.chomp =~ /^status.+enabled/i) ? "running" : "stopped"
October 22, 2007
12:29AM EDT
by Mikel Lindsaar
View more (13 lines)
baci:~/wise mikel$ ./script/console Loading development environment. >> m = "item".match(%r!^([#.]?)([a-z0-9\\*_-]*)!i).to_a; puts $'.inspect "" => nil
October 09, 2007
1:09AM EDT
by Mikel Lindsaar
View more (84 lines)
Index: test/mixin_test.rb =================================================================== --- test/mixin_test.rb (revision 7813) +++ test/mixin_test.rb (working copy) @@ -210,7 +210,54 @@
October 09, 2007
12:58AM EDT
by Mikel Lindsaar
View more (39 lines)
baci:~/sandbox mikel$ svn info 1-2-stable/ Path: 1-2-stable URL: http://svn.rubyonrails.org/rails/branches/1-2-stable Repository Root: http://svn.rubyonrails.org/rails Repository UUID: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
October 08, 2007
12:10AM EDT
by Mikel Lindsaar
View more (55 lines)
AR Trunk.... AR 1.2 tests out fine... baci:~/sandbox/trunk/activerecord mikel$ rake test_mysql --trace
October 08, 2007
12:08AM EDT
by Mikel Lindsaar
View more (221 lines)
baci:~/sandbox/1-2-stable/actionpack mikel$ rake test (in /Users/mikel/sandbox/1-2-stable/actionpack) /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/controller/action_pack_assertions_test.rb" "test/controller/addresses_render_test.rb" "test/controller/assert_select_test.rb" "test/controller/base_test.rb" "test/controller/benchmark_test.rb" "test/controller/caching_test.rb" "test/controller/capture_test.rb" "test/controller/cgi_test.rb" "test/controller/components_test.rb" "test/controller/content_type_test.rb" "test/controller/cookie_test.rb" "test/controller/custom_handler_test.rb" "test/controller/deprecated_instance_variables_test.rb" "test/controller/deprecation/deprecated_base_methods_test.rb" "test/controller/filter_params_test.rb" "test/controller/filters_test.rb" "test/controller/flash_test.rb" "test/controller/fragment_store_setting_test.rb" "test/controller/helper_test.rb" "test/controller/integration_test.rb" "test/controller/layout_test.rb" "test/controller/mime_responds_test.rb" "test/controller/mime_type_test.rb" "test/controller/new_render_test.rb" "test/controller/raw_post_test.rb" "test/controller/redirect_test.rb" "test/controller/render_test.rb" "test/controller/request_test.rb" "test/controller/resources_test.rb" "test/controller/routing_test.rb" "test/controller/selector_test.rb" "test/controller/send_file_test.rb" "test/controller/session_management_test.rb" "test/controller/test_test.rb" "test/controller/url_rewriter_test.rb" "test/controller/verification_test.rb" "test/controller/webservice_test.rb" "test/template/active_record_helper_test.rb" "test/template/asset_tag_helper_test.rb" "test/template/benchmark_helper_test.rb" "test/template/compiled_templates_test.rb" "test/template/date_helper_test.rb" "test/template/deprecated_helper_test.rb" "test/template/deprecated_instance_variables_test.rb" "test/template/form_helper_test.rb" "test/template/form_options_helper_test.rb" "test/template/form_tag_helper_test.rb" "test/template/java_script_macros_helper_test.rb" "test/template/javascript_helper_test.rb" "test/template/number_helper_test.rb" "test/template/prototype_helper_test.rb" "test/template/scriptaculous_helper_test.rb" "test/template/tag_helper_test.rb" "test/template/text_helper_test.rb" "test/template/url_helper_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started
October 07, 2007
11:05PM EDT
by Mikel Lindsaar
View more (59 lines)
class User :has_many :domains, :through => :domain_coordinators :has_many :regions, :through => :regional_coordinators :belongs_to :domain
October 07, 2007
10:52PM EDT
by Mikel Lindsaar
View more (39 lines)
class User
:has_many :domains, :through => :domain_coordinators
:has_many :regions, :through => :regional_coordinators
def domains_responsible_for
self.domains
October 07, 2007
10:41PM EDT
by Mikel Lindsaar
View more (35 lines)
class User
:has_many :domains, :through => :coordinators
def domains_responsible_for
self.domains
end
August 23, 2007
6:13AM EDT
by Mikel Lindsaar
View more (14 lines)
From /etc/pf.conf: EXT_IP="2.1.2.2" # Filter rules to capture traffic
July 20, 2007
4:21AM EDT
by Mikel Lindsaar
View more (16 lines)
page.visual_effect :highlight, "trans_#{@translated_paragraph.id}",
:startcolor => "'#ffffff'", :endcolor => "'#222222'",
:duration => 2
page.delay(0.4) do
page.visual_effect :puff, "trans_#{@translated_paragraph.id}"
July 18, 2007
8:03AM EDT
by Mikel Lindsaar
View more (50 lines)
# RSpec Question class Node < ActiveRecord::Base
