Skip to content

Instantly share code, notes, and snippets.

View comron's full-sized avatar

Comron Sattari comron

  • SecureDocs, Inc.
  • Santa Barbara, CA
View GitHub Profile
alert("hello");
document.write("test");
do_calculation = proc {
do_some_blocking_stuff
}
EM.defer( do_calculation, proc { |results|
EM.schedule do
EventedMysql.execute(sql_for_results(results)) do
puts "done"
end
end