{"action":"created","issue":{"url":"https://api.github.com/repos/nsrr/www.sleepdata.org/issues/83","labels_url":"https://api.github.com/repos/nsrr/www.sleepdata.org/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/nsrr/www.sleepdata.org/issues/83/comments","events_url":"https://api.github.com/repos/nsrr/www.sleepdata.org/issues/83/events","html_url":"https://github.com/nsrr/www.sleepdata.org/issues/83","id":56048555,"number":83,"title":"Create Challenge pages from PPT","user":{"login":"remomueller","id":316479,"avatar_url":"https://avatars.githubusercontent.com/u/316479?v=3","gravatar_id":"","url":"https://api.github.com/users/remomueller","html_url":"https://github.com/remomueller","followers_url":"https://api.github.com/users/remomueller/followers","following_url":"https://api.github.com/users/remomueller/following{/other_user}","gists_url":"https://api.github.com/users/remomueller/gists{/gist_id}","starred_url":"https://api.github.com/users/remomueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remomueller/subscriptions","organizations_url":"https://api.github.com/users/remomueller/orgs","repos_url":"https://api.github.com/users/remomueller/repos","events_url":"https://api.github.com/users/remomueller/events{/privacy}","received_events_url":"https://api.github.com/users/remomueller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nsrr/www.sleepdata.org/labels/New%20Feature","name":"New Feature","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"remomueller","id":316479,"avatar_url":"https://avatars.githubusercontent.com/u/316479?v=3","gravatar_id":"","url":"https://api.github.com/users/remomueller","html_url":"https://github.com/remomueller","followers_url":"https://api.github.com/users/remomueller/followers","following_url":"https://api.github.com/users/remomueller/following{/other_user}","gists_url":"https://api.github.com/users/remomueller/gists{/gist_id}","starred_url":"https://api.github.com/users/remomueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remomueller/subscriptions","organizations_url":"https://api.github.com/users/remomueller/orgs","repos_url":"https://api.github.com/users/remomueller/repos","events_url":"https://api.github.com/users/remomueller/events{/privacy}","received_events_url":"https://api.github.com/users/remomueller/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nsrr/www.sleepdata.org/milestones/20","html_url":"https://github.com/nsrr/www.sleepdata.org/milestones/0.16.0","labels_url":"https://api.github.com/repos/nsrr/www.sleepdata.org/milestones/20/labels","id":888446,"number":20,"title":"0.16.0","description":"","creator":{"login":"remomueller","id":316479,"avatar_url":"https://avatars.githubusercontent.com/u/316479?v=3","gravatar_id":"","url":"https://api.github.com/users/remomueller","html_url":"https://github.com/remomueller","followers_url":"https://api.github.com/users/remomueller/followers","following_url":"https://api.github.com/users/remomueller/following{/other_user}","gists_url":"https://api.github.com/users/remomueller/gists{/gist_id}","starred_url":"https://api.github.com/users/remomueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remomueller/subscriptions","organizations_url":"https://api.github.com/users/remomueller/orgs","repos_url":"https://api.github.com/users/remomueller/repos","events_url":"https://api.github.com/users/remomueller/events{/privacy}","received_events_url":"https://api.github.com/users/remomueller/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":17,"state":"open","created_at":"2014-12-02T19:04:19Z","updated_at":"2015-03-10T16:39:38Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-01-30T15:44:15Z","updated_at":"2015-03-10T18:46:34Z","closed_at":null,"body":"The Challenge pages should be put online to launch the first NSRR challenge"},"comment":{"url":"https://api.github.com/repos/nsrr/www.sleepdata.org/issues/comments/78120490","html_url":"https://github.com/nsrr/www.sleepdata.org/issues/83#issuecomment-78120490","issue_url":"https://api.github.com/repos/nsrr/www.sleepdata.org/issues/83","id":78120490,"user":{"login":"remomueller","id":316479,"avatar_url":"https://avatars.githubusercontent.com/u/316479?v=3","gravatar_id":"","url":"https://api.github.com/users/remomueller","html_url":"https://github.com/remomueller","followers_url":"https://api.github.com/users/remomueller/followers","following_url":"https://api.github.com/users/remomueller/following{/other_user}","gists_url":"https://api.github.com/users/remomueller/gists{/gist_id}","starred_url":"https://api.github.com/users/remomueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remomueller/subscriptions","organizations_url":"https://api.github.com/users/remomueller/orgs","repos_url":"https://api.github.com/users/remomueller/repos","events_url":"https://api.github.com/users/remomueller/events{/privacy}","received_events_url":"https://api.github.com/users/remomueller/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T18:46:34Z","updated_at":"2015-03-10T18:46:34Z","body":"```ruby\r\nc = Challenge.find_by_slug 'flow-limitation'\r\n\r\nsignal_map = [('A'..'R'), ('A'..'V'), ('A'..'P'), ('A'..'N'), ('A'..'P'),\r\n              ('A'..'S'), ('A'..'M'), ('A'..'M'), ('A'..'P'), ('A'..'M'),\r\n              ('A'..'O'), ('A'..'S'), ('A'..'R'), ('A'..'P'), ('A'..'M'),\r\n              ('A'..'R'), ('A'..'P'), ('A'..'J'), ('A'..'S'), ('A'..'L'),\r\n              ('A'..'M'), ('A'..'P'), ('A'..'M'), ('A'..'K'), ('A'..'M'),\r\n              ('A'..'U'), ('A'..'O'), ('A'..'O'), ('A'..'L'), ('A'..'N')]\r\n\r\nsignal_map.each_with_index do |range, index|\r\n  number = \"%02d\" % (index+1)\r\n  range.each do |letter|\r\n    c.questions.where(name: \"signal#{number}#{letter.downcase}\").first_or_create\r\n  end\r\nend\r\n\r\nc.questions.pluck(:name)\r\n```"}}