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
# λ x. x | |
->(x){x} |
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
# teams/new.html.haml | |
-form_for([@team]) do |f| | |
= link_to_function 'Add a Member' { |page| page.insert_html :bottom, :members, :partial => 'member', :object => Member.new } | |
= f.submit | |
# teams/_member.html.haml | |
- fields_for 'team[member_attributes][]', member do |f| | |
= f.datetime_select :arrival | |
# teams_controller.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
## Error | |
Status: 500 Internal Server Error | |
Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array. This can be caused by colliding Array and Hash parameters like qs[]=value&qs[key]=value. (The parameters received were [{"attribute"=>""}].) |
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
#rails/actionpack/lib/action_view/helpers/form_helper.rb:508 | |
if @object_name.sub!(/\[\]$/,'') | |
if object ||= @template_object.instance_variable_get("@#{Regexp.last_match.pre_match}") and object.respond_to?(:to_param) | |
@auto_index = object.to_param | |
else | |
raise ArgumentError, "object[] naming but object param and @object var don't exist or don't respond to to_param: #{object.inspect}" | |
end | |
end |
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
# teams/new.html.haml | |
-form_for([@team]) do |f| | |
... | |
%p= link_to_function "Add a Member"; do |page| | |
page.insert_html :bottom, :members, :partial =>'member', :object => Member.new | |
= f.submit | |
# teams/_member.html.haml |
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
[?x,?k,?c,?d].map(&'_-96').fold(&'+') |
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
if ( window.addEventListener ) { | |
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
window.addEventListener("keydown", function(e){ | |
kkeys.push( e.keyCode ); | |
if ( kkeys.toString().indexOf( konami ) >= 0 ) | |
window.location = "http://example.com/"; | |
}, true); | |
} |
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
if ( window.addEventListener ) { | |
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
window.addEventListener("keydown", function(e){ | |
kkeys.shift(); | |
kkeys[9] = e.keyCode; | |
if ( kkeys.toString() == konami ) | |
window.location = "http://example.com"; | |
}, true); | |
} |
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
if ( window.addEventListener ) { | |
var state = 0, konami = [38,38,40,40,37,39,37,39,66,65]; | |
window.addEventListener("keydown", function(e) { | |
if ( e.keyCode == konami[state] ) state++; | |
else state = 0; | |
if ( state == 10 ) | |
window.location = "http://example.com"; | |
}, true); | |
} |
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
--- | |
53cr.com: | |
location: 53cr | |
redmine.53cr.com: | |
type: rails | |
railsenv: production | |
chromium53.com: | |
type: alias | |
redirect: 53cr.com |