- How old are you going to be?
- What is your favorite color?
- How tall are you?
- What is your favorite food?
- Who are some of your best friends?
- What is your favorite TV show?
- What is your favorite thing to do?
- What is the best part of your day?
- Where would you like to go for vacation?
- What do you want to do when you grow up?
View will_paginate_fulltrace.txt
This file contains 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
actionview (7.0.1) lib/action_view/helpers/translation_helper.rb:73:in `translate' | |
will_paginate (3.1.8) lib/will_paginate/view_helpers/action_view.rb:83:in `will_paginate_translate' | |
will_paginate (3.1.8) lib/will_paginate/view_helpers.rb:77:in `will_paginate' | |
will_paginate (3.1.8) lib/will_paginate/view_helpers/action_view.rb:33:in `will_paginate' | |
app/views/families/show.html.erb:50 | |
actionview (7.0.1) lib/action_view/base.rb:244:in `public_send' | |
actionview (7.0.1) lib/action_view/base.rb:244:in `_run' | |
actionview (7.0.1) lib/action_view/template.rb:157:in `block in render' | |
activesupport (7.0.1) lib/active_support/notifications.rb:206:in `block in instrument' | |
activesupport (7.0.1) lib/active_support/notifications/instrumenter.rb:24:in `instrument' |
View close applications in alfred
This file contains 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
on alfred_script(q) | |
tell application "Sequel Pro" to quit | |
tell application "Dash" to quit | |
tell application "Tower" to quit | |
tell application "iTerm" to quit | |
tell application "Sublime Text 2" to quit | |
end alfred_script |
View kid_questions.md
View athing.rb
This file contains 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
def total_price | |
[ | |
total_price_without_discounts - self.yearly_discount - self.recurring_coupon_discount - self.special_deal_discount, | |
0 | |
].max | |
end |
View CVE-2013-0269_JSON-1_7_7.diff
This file contains 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
--- | |
CHANGES | 8 ++++++ | |
Gemfile | 1 + | |
ext/json/ext/parser/parser.c | 2 +- | |
ext/json/ext/parser/parser.rl | 2 +- | |
java/src/json/ext/Parser.java | 2 +- | |
java/src/json/ext/Parser.rl | 2 +- | |
json.gemspec | 2 +- | |
json_pure.gemspec | 2 +- | |
lib/json/common.rb | 21 +++++++++----- |
View CVE-2013-0276_Rails-3_0.diff
This file contains 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
Fixes: CVE-2013-0276 | |
Conflicts: | |
activemodel/lib/active_model/attribute_methods.rb | |
activerecord/test/cases/mass_assignment_security_test.rb | |
--- | |
activemodel/lib/active_model/attribute_methods.rb | 2 +- | |
activemodel/lib/active_model/mass_assignment_security/permission_set.rb | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) |
View CVE-2013-0277_Rails-3_0.diff
This file contains 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
.../lib/active_record/attribute_methods/write.rb | 9 ++++++++- | |
activerecord/test/cases/base_test.rb | 6 ++++++ | |
2 files changed, 14 insertions(+), 1 deletion(-) | |
diff --git a/activerecord/lib/active_record/attribute_methods/write.rb b/activerecord/lib/active_record/attribute_methods/write.rb | |
index 3c4dab3..4684c4b 100644 | |
--- a/activerecord/lib/active_record/attribute_methods/write.rb | |
+++ b/activerecord/lib/active_record/attribute_methods/write.rb |
View languages.txt
This file contains 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
Ruby | |
CoffeeScript | |
JavaScript | |
Java | |
VBScript | |
VB | |
COBOL | |
Easytrieve | |
JCL | |
CSS |
View pull_request_webhook.md
This is more complex than necessary.
GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.
{
"name": "web",
"active": true,
View array_corecion.rb
This file contains 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
irb> Array(nil) | |
=> [] | |
irb> Array("string") | |
=> ["string"] | |
irb> Array([:blah, :sah]) | |
=> [:blah, :sah] | |
irb> "string".to_a | |
NoMethodError: undefined method `to_a' for "string":String | |
from (irb):5 | |
from /Users/barry/.rbenv/versions/1.9.3-p125/bin/irb:12:in `<main>' |
NewerOlder