Skip to content

Instantly share code, notes, and snippets.

@jonbca
jonbca / peach.rb
Last active August 29, 2015 14:05 — forked from joejag/peach.rb
class Array
def peach(&block)
threads = []
self.each do |item|
threads << Thread.new do
block.call(item)
end
end
threads.each(&:join)
end
@jonbca
jonbca / example.html
Last active December 16, 2015 21:50 — forked from markprovan/example.js
<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"}}>