{"action":"created","comment":{"url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/comments/72834251","id":72834251,"diff_hunk":"@@ -50,21 +50,36 @@\n       $.get('./users').then(function(users){\n         users.forEach(function(user) {\n           $.get('/chip-status/' + encodeURI(user)).then(function(score){\n-            var level = false;\n-            var pepperText = '';\n \n-            if(score.count >= 11) {\n-              level = 'hot';\n-            } else if(score.count >= 8) {\n-              level = 'medium';\n-            } else if(score.count >= 4) {\n-              level = 'mild';\n+            var peppers = [];\n+            var totalScore = 0;\n+            for(var key in score.standing) {","path":"views/index.erb","position":15,"original_position":15,"commit_id":"720098c5eec1aa095027c3ceef0fe82d1dbc528d","original_commit_id":"720098c5eec1aa095027c3ceef0fe82d1dbc528d","user":{"login":"nikdavis","id":3935178,"avatar_url":"https://avatars.githubusercontent.com/u/3935178?v=3","gravatar_id":"","url":"https://api.github.com/users/nikdavis","html_url":"https://github.com/nikdavis","followers_url":"https://api.github.com/users/nikdavis/followers","following_url":"https://api.github.com/users/nikdavis/following{/other_user}","gists_url":"https://api.github.com/users/nikdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikdavis/subscriptions","organizations_url":"https://api.github.com/users/nikdavis/orgs","repos_url":"https://api.github.com/users/nikdavis/repos","events_url":"https://api.github.com/users/nikdavis/events{/privacy}","received_events_url":"https://api.github.com/users/nikdavis/received_events","type":"User","site_admin":false},"body":"fwiw ```for ... in``` is slow vs a normal for, and can do some unintended things when used on arrays as it iterates across all inherited props. E.g., imagine if a lib extended Array ```Array.prototype.newThing``` -- it will be included. :(","created_at":"2016-07-29T17:57:27Z","updated_at":"2016-07-29T17:57:27Z","html_url":"https://github.com/nikdavis/chiptopia-leaderboard/pull/3#discussion_r72834251","pull_request_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/comments/72834251"},"html":{"href":"https://github.com/nikdavis/chiptopia-leaderboard/pull/3#discussion_r72834251"},"pull_request":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3","id":79262553,"html_url":"https://github.com/nikdavis/chiptopia-leaderboard/pull/3","diff_url":"https://github.com/nikdavis/chiptopia-leaderboard/pull/3.diff","patch_url":"https://github.com/nikdavis/chiptopia-leaderboard/pull/3.patch","issue_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues/3","number":3,"state":"open","locked":false,"title":"Now showing peppers for all 3 months","user":{"login":"awhipple","id":3220176,"avatar_url":"https://avatars.githubusercontent.com/u/3220176?v=3","gravatar_id":"","url":"https://api.github.com/users/awhipple","html_url":"https://github.com/awhipple","followers_url":"https://api.github.com/users/awhipple/followers","following_url":"https://api.github.com/users/awhipple/following{/other_user}","gists_url":"https://api.github.com/users/awhipple/gists{/gist_id}","starred_url":"https://api.github.com/users/awhipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awhipple/subscriptions","organizations_url":"https://api.github.com/users/awhipple/orgs","repos_url":"https://api.github.com/users/awhipple/repos","events_url":"https://api.github.com/users/awhipple/events{/privacy}","received_events_url":"https://api.github.com/users/awhipple/received_events","type":"User","site_admin":false},"body":"<img width=\"357\" alt=\"screen shot 2016-07-28 at 1 27 13 pm\" src=\"https://cloud.githubusercontent.com/assets/3220176/17228235/095311ca-54c7-11e6-8125-2585dfc9f7b4.png\">\r\n\r\nsidekick: The only one who can","created_at":"2016-07-28T20:27:45Z","updated_at":"2016-07-29T17:57:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e69b363fff78e3997352e165bb7f7adb7e83375","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3/commits","review_comments_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3/comments","review_comment_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues/3/comments","statuses_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/statuses/720098c5eec1aa095027c3ceef0fe82d1dbc528d","head":{"label":"awhipple:master","ref":"master","sha":"720098c5eec1aa095027c3ceef0fe82d1dbc528d","user":{"login":"awhipple","id":3220176,"avatar_url":"https://avatars.githubusercontent.com/u/3220176?v=3","gravatar_id":"","url":"https://api.github.com/users/awhipple","html_url":"https://github.com/awhipple","followers_url":"https://api.github.com/users/awhipple/followers","following_url":"https://api.github.com/users/awhipple/following{/other_user}","gists_url":"https://api.github.com/users/awhipple/gists{/gist_id}","starred_url":"https://api.github.com/users/awhipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awhipple/subscriptions","organizations_url":"https://api.github.com/users/awhipple/orgs","repos_url":"https://api.github.com/users/awhipple/repos","events_url":"https://api.github.com/users/awhipple/events{/privacy}","received_events_url":"https://api.github.com/users/awhipple/received_events","type":"User","site_admin":false},"repo":{"id":64425866,"name":"chiptopia-leaderboard","full_name":"awhipple/chiptopia-leaderboard","owner":{"login":"awhipple","id":3220176,"avatar_url":"https://avatars.githubusercontent.com/u/3220176?v=3","gravatar_id":"","url":"https://api.github.com/users/awhipple","html_url":"https://github.com/awhipple","followers_url":"https://api.github.com/users/awhipple/followers","following_url":"https://api.github.com/users/awhipple/following{/other_user}","gists_url":"https://api.github.com/users/awhipple/gists{/gist_id}","starred_url":"https://api.github.com/users/awhipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awhipple/subscriptions","organizations_url":"https://api.github.com/users/awhipple/orgs","repos_url":"https://api.github.com/users/awhipple/repos","events_url":"https://api.github.com/users/awhipple/events{/privacy}","received_events_url":"https://api.github.com/users/awhipple/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/awhipple/chiptopia-leaderboard","description":null,"fork":true,"url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard","forks_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/forks","keys_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/teams","hooks_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/hooks","issue_events_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/issues/events{/number}","events_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/events","assignees_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/assignees{/user}","branches_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/branches{/branch}","tags_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/tags","blobs_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/statuses/{sha}","languages_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/languages","stargazers_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/stargazers","contributors_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/contributors","subscribers_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/subscribers","subscription_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/subscription","commits_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/contents/{+path}","compare_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/merges","archive_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/downloads","issues_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/issues{/number}","pulls_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/pulls{/number}","milestones_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/milestones{/number}","notifications_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/labels{/name}","releases_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/releases{/id}","deployments_url":"https://api.github.com/repos/awhipple/chiptopia-leaderboard/deployments","created_at":"2016-07-28T20:25:05Z","updated_at":"2016-07-28T20:25:06Z","pushed_at":"2016-07-28T20:26:40Z","git_url":"git://github.com/awhipple/chiptopia-leaderboard.git","ssh_url":"git@github.com:awhipple/chiptopia-leaderboard.git","clone_url":"https://github.com/awhipple/chiptopia-leaderboard.git","svn_url":"https://github.com/awhipple/chiptopia-leaderboard","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nikdavis:master","ref":"master","sha":"6865f5c9b8ac47fd037a760c3933ce25b11b2ad7","user":{"login":"nikdavis","id":3935178,"avatar_url":"https://avatars.githubusercontent.com/u/3935178?v=3","gravatar_id":"","url":"https://api.github.com/users/nikdavis","html_url":"https://github.com/nikdavis","followers_url":"https://api.github.com/users/nikdavis/followers","following_url":"https://api.github.com/users/nikdavis/following{/other_user}","gists_url":"https://api.github.com/users/nikdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikdavis/subscriptions","organizations_url":"https://api.github.com/users/nikdavis/orgs","repos_url":"https://api.github.com/users/nikdavis/repos","events_url":"https://api.github.com/users/nikdavis/events{/privacy}","received_events_url":"https://api.github.com/users/nikdavis/received_events","type":"User","site_admin":false},"repo":{"id":62755958,"name":"chiptopia-leaderboard","full_name":"nikdavis/chiptopia-leaderboard","owner":{"login":"nikdavis","id":3935178,"avatar_url":"https://avatars.githubusercontent.com/u/3935178?v=3","gravatar_id":"","url":"https://api.github.com/users/nikdavis","html_url":"https://github.com/nikdavis","followers_url":"https://api.github.com/users/nikdavis/followers","following_url":"https://api.github.com/users/nikdavis/following{/other_user}","gists_url":"https://api.github.com/users/nikdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikdavis/subscriptions","organizations_url":"https://api.github.com/users/nikdavis/orgs","repos_url":"https://api.github.com/users/nikdavis/repos","events_url":"https://api.github.com/users/nikdavis/events{/privacy}","received_events_url":"https://api.github.com/users/nikdavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikdavis/chiptopia-leaderboard","description":null,"fork":false,"url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard","forks_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/forks","keys_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/teams","hooks_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/hooks","issue_events_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues/events{/number}","events_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/events","assignees_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/assignees{/user}","branches_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/branches{/branch}","tags_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/tags","blobs_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/statuses/{sha}","languages_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/languages","stargazers_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/stargazers","contributors_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/contributors","subscribers_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/subscribers","subscription_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/subscription","commits_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/contents/{+path}","compare_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/merges","archive_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/downloads","issues_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues{/number}","pulls_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls{/number}","milestones_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/milestones{/number}","notifications_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/labels{/name}","releases_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/releases{/id}","deployments_url":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/deployments","created_at":"2016-07-06T21:57:05Z","updated_at":"2016-07-08T22:50:17Z","pushed_at":"2016-07-28T20:27:46Z","git_url":"git://github.com/nikdavis/chiptopia-leaderboard.git","ssh_url":"git@github.com:nikdavis/chiptopia-leaderboard.git","clone_url":"https://github.com/nikdavis/chiptopia-leaderboard.git","svn_url":"https://github.com/nikdavis/chiptopia-leaderboard","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3"},"html":{"href":"https://github.com/nikdavis/chiptopia-leaderboard/pull/3"},"issue":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues/3"},"comments":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/nikdavis/chiptopia-leaderboard/statuses/720098c5eec1aa095027c3ceef0fe82d1dbc528d"}}}}
{"actor":{"display_login":"nikdavis"}}