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
class Array | |
def peach(&block) | |
threads = [] | |
self.each do |item| | |
threads << Thread.new do | |
block.call(item) | |
end | |
end | |
threads.each(&:join) | |
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
<table {{bindAttr class="length:show:hide"}}> | |
<thead><tr><th>foo</th></tr></thead> | |
<tbody> | |
{{#each item in controller}} | |
<tr><td>{{item.name}}</td></tr> | |
{{/each}} | |
</tbody> | |
</table> | |
<div {{bindAttr class="length:hide:show"}}> |