xxxxxxxxxx
payload = [{"a" => "a"}, {"b" => "b"}, {"c" => "c"}, {"d" => "d"}]
survey = [{1 => 1}]
result = payload.each_slice(2)
newresult = survey.map { |i| [i, begin; result.next; rescue; end].compact}.flatten
#wanted:
#[{1=>1}, {"a"=>"a"}, {"b"=>"b"},{"c"=>"c"}, {"d"=>"d"}]
#[{1=>1}, {"a" => "a"}, {"b" => "b"}, {2=>2}, {"c" => "c"}, {"d" => "d"}, {3=>3}] if survey is [{1 => 1}, {2 => 2} , {3 => 3}]
#[{1=>1}, {"a" => "a"}, {"b" => "b"}, {2=>2}, {"c" => "c"}, {"d" => "d"}, {3=>3},{4=>4},{5=>5}] if survey is [{1 => 1}, {2 => 2} , {3 => 3},{4=>4},{5=>5}]
We wanted a way for people to experience some Ruby in the browser, as well as have a platform that can send cool Ruby scripts to one another.
What does this mean?
In Github, forking is a way that you can build upon someone else's code.
Once the project you have forked the code, you can update it from that point on.
RubyFiddle grew up a little bit on June 14, 2012.
We execute in a restricted environment on Heroku and unfortunately, system calls and Ruby classes cause problems.
Due to such security concerns, we had to disable things like