Files
2012-02-21 01:15:00 -05:00

1 line
2.4 KiB
JSON

[{"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357772.6158309, "message": "example code :", "group_id": 109, "id": 602354}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357792.0426581, "message": "thanks for your help!!", "group_id": 109, "id": 602357}, {"user_id": 2190, "stars": [], "topic_id": 18236, "date_created": 1302357845.9529419, "message": "Try with #{variable}", "group_id": 109, "id": 602362}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357937.6587689, "message": "thanks a lot!!!", "group_id": 109, "id": 602368}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357928.786808, "message": "omg, that was fast, and exactly what I needed", "group_id": 109, "id": 602367}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357779.3572941, "message": "def self.finalize(aU)\n <<-JS\n function(key, val) {\n val.average = val.positiveCount * 100 / val.count;\n var u = val.positiveCount;\n var a = val.average;\n var aU = INSERT THE aU VARIABLE HERE!\n // and more code goes here...\n return val;\n }\n JS\n end", "group_id": 109, "id": 602356}, {"user_id": 2190, "stars": [], "topic_id": 18236, "date_created": 1302358114.7037821, "message": "You're welcome :)\n\nThat works everytime you want to interpolate values in a string, and you can even call a method, like:\n\nputs \"Hello #{'world'.upcase}!\"", "group_id": 109, "id": 602381}, {"user_id": 1648, "stars": [], "topic_id": 18236, "date_created": 1302359017.2172639, "message": "Just make sure you sanitize user input. Otherwise you're opening yourself up to xss attacks.", "group_id": 109, "id": 602428}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302359030.349179, "message": "true, thanks!", "group_id": 109, "id": 602429}, {"user_id": 1094, "stars": [], "topic_id": 18236, "date_created": 1302362331.496891, "message": "A little OT. For some reason people like the <<-HEREDOC syntax a lot more than I do. Ruby's %Q{ ...multi-line string here... } seems to me much more palatable.", "group_id": 109, "id": 602597}, {"user_id": 20844, "stars": [], "topic_id": 18236, "date_created": 1302404579.7942691, "message": "I tend to try and avoid this pattern, but if you absolutely have to, try using .to_json to sanitize and/or quote values.", "group_id": 109, "id": 607636}]