{"action":"created","comment":{"url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/comments/29564195","id":29564195,"diff_hunk":"@@ -0,0 +1,18 @@\n+'use strict';\n+\n+var fs = require('fs');\n+var EventEmitter = require('events').EventEmitter;\n+exports.emitter = new EventEmitter();","path":"lib/read-bitmap.js","position":5,"original_position":5,"commit_id":"5c62c84ac219c3e4e238ad8c1076034839d162ca","original_commit_id":"5c62c84ac219c3e4e238ad8c1076034839d162ca","user":{"login":"bion","id":473671,"avatar_url":"https://avatars.githubusercontent.com/u/473671?v=3","gravatar_id":"","url":"https://api.github.com/users/bion","html_url":"https://github.com/bion","followers_url":"https://api.github.com/users/bion/followers","following_url":"https://api.github.com/users/bion/following{/other_user}","gists_url":"https://api.github.com/users/bion/gists{/gist_id}","starred_url":"https://api.github.com/users/bion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bion/subscriptions","organizations_url":"https://api.github.com/users/bion/orgs","repos_url":"https://api.github.com/users/bion/repos","events_url":"https://api.github.com/users/bion/events{/privacy}","received_events_url":"https://api.github.com/users/bion/received_events","type":"User","site_admin":false},"body":"by exporting the instance of `EventEmitter` here, you're preventing being able processing more than one of these at a time because multiple calls to `readBitmap` will trigger `done` on the same `emitter`.\r\n\r\na possible solution here would be to export a single thing from this file that can read a single bitmap and register its own events.","created_at":"2015-05-04T02:57:08Z","updated_at":"2015-05-04T02:57:08Z","html_url":"https://github.com/andyjac/bitmap_transformer/pull/6#discussion_r29564195","pull_request_url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/comments/29564195"},"html":{"href":"https://github.com/andyjac/bitmap_transformer/pull/6#discussion_r29564195"},"pull_request":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6","id":34610468,"html_url":"https://github.com/andyjac/bitmap_transformer/pull/6","diff_url":"https://github.com/andyjac/bitmap_transformer/pull/6.diff","patch_url":"https://github.com/andyjac/bitmap_transformer/pull/6.patch","issue_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/6","number":6,"state":"open","locked":false,"title":"Refactor","user":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"body":"- blueTint now take tint amount as a command line arg. \r\n- for example: `node index.js blueTint 30` will increase blue values by 30.\r\n- Not passing an arg in or passing in a non-numerical value results in it defaulting to 0.\r\n- Negative numbers are turned into positive numbers\r\n- Values over 255 default to 255.","created_at":"2015-05-04T00:12:44Z","updated_at":"2015-05-04T02:57:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"383af0dd48db145faceefffff9299b2694e9eb29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6/commits","review_comments_url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6/comments","review_comment_url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/6/comments","statuses_url":"https://api.github.com/repos/andyjac/bitmap_transformer/statuses/5c62c84ac219c3e4e238ad8c1076034839d162ca","head":{"label":"andyjac:refactor","ref":"refactor","sha":"5c62c84ac219c3e4e238ad8c1076034839d162ca","user":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"repo":{"id":34916300,"name":"bitmap_transformer","full_name":"andyjac/bitmap_transformer","owner":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andyjac/bitmap_transformer","description":"Bitmap Transformer Project","fork":false,"url":"https://api.github.com/repos/andyjac/bitmap_transformer","forks_url":"https://api.github.com/repos/andyjac/bitmap_transformer/forks","keys_url":"https://api.github.com/repos/andyjac/bitmap_transformer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andyjac/bitmap_transformer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andyjac/bitmap_transformer/teams","hooks_url":"https://api.github.com/repos/andyjac/bitmap_transformer/hooks","issue_events_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/events{/number}","events_url":"https://api.github.com/repos/andyjac/bitmap_transformer/events","assignees_url":"https://api.github.com/repos/andyjac/bitmap_transformer/assignees{/user}","branches_url":"https://api.github.com/repos/andyjac/bitmap_transformer/branches{/branch}","tags_url":"https://api.github.com/repos/andyjac/bitmap_transformer/tags","blobs_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/refs{/sha}","trees_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andyjac/bitmap_transformer/statuses/{sha}","languages_url":"https://api.github.com/repos/andyjac/bitmap_transformer/languages","stargazers_url":"https://api.github.com/repos/andyjac/bitmap_transformer/stargazers","contributors_url":"https://api.github.com/repos/andyjac/bitmap_transformer/contributors","subscribers_url":"https://api.github.com/repos/andyjac/bitmap_transformer/subscribers","subscription_url":"https://api.github.com/repos/andyjac/bitmap_transformer/subscription","commits_url":"https://api.github.com/repos/andyjac/bitmap_transformer/commits{/sha}","git_commits_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/commits{/sha}","comments_url":"https://api.github.com/repos/andyjac/bitmap_transformer/comments{/number}","issue_comment_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/comments{/number}","contents_url":"https://api.github.com/repos/andyjac/bitmap_transformer/contents/{+path}","compare_url":"https://api.github.com/repos/andyjac/bitmap_transformer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andyjac/bitmap_transformer/merges","archive_url":"https://api.github.com/repos/andyjac/bitmap_transformer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andyjac/bitmap_transformer/downloads","issues_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues{/number}","pulls_url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls{/number}","milestones_url":"https://api.github.com/repos/andyjac/bitmap_transformer/milestones{/number}","notifications_url":"https://api.github.com/repos/andyjac/bitmap_transformer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andyjac/bitmap_transformer/labels{/name}","releases_url":"https://api.github.com/repos/andyjac/bitmap_transformer/releases{/id}","created_at":"2015-05-01T18:08:10Z","updated_at":"2015-05-01T18:12:12Z","pushed_at":"2015-05-04T00:55:19Z","git_url":"git://github.com/andyjac/bitmap_transformer.git","ssh_url":"git@github.com:andyjac/bitmap_transformer.git","clone_url":"https://github.com/andyjac/bitmap_transformer.git","svn_url":"https://github.com/andyjac/bitmap_transformer","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"andyjac:master","ref":"master","sha":"6ecd4b8a68bbfea5e00217d6b0ad6081d0488661","user":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"repo":{"id":34916300,"name":"bitmap_transformer","full_name":"andyjac/bitmap_transformer","owner":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andyjac/bitmap_transformer","description":"Bitmap Transformer Project","fork":false,"url":"https://api.github.com/repos/andyjac/bitmap_transformer","forks_url":"https://api.github.com/repos/andyjac/bitmap_transformer/forks","keys_url":"https://api.github.com/repos/andyjac/bitmap_transformer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andyjac/bitmap_transformer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andyjac/bitmap_transformer/teams","hooks_url":"https://api.github.com/repos/andyjac/bitmap_transformer/hooks","issue_events_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/events{/number}","events_url":"https://api.github.com/repos/andyjac/bitmap_transformer/events","assignees_url":"https://api.github.com/repos/andyjac/bitmap_transformer/assignees{/user}","branches_url":"https://api.github.com/repos/andyjac/bitmap_transformer/branches{/branch}","tags_url":"https://api.github.com/repos/andyjac/bitmap_transformer/tags","blobs_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/refs{/sha}","trees_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andyjac/bitmap_transformer/statuses/{sha}","languages_url":"https://api.github.com/repos/andyjac/bitmap_transformer/languages","stargazers_url":"https://api.github.com/repos/andyjac/bitmap_transformer/stargazers","contributors_url":"https://api.github.com/repos/andyjac/bitmap_transformer/contributors","subscribers_url":"https://api.github.com/repos/andyjac/bitmap_transformer/subscribers","subscription_url":"https://api.github.com/repos/andyjac/bitmap_transformer/subscription","commits_url":"https://api.github.com/repos/andyjac/bitmap_transformer/commits{/sha}","git_commits_url":"https://api.github.com/repos/andyjac/bitmap_transformer/git/commits{/sha}","comments_url":"https://api.github.com/repos/andyjac/bitmap_transformer/comments{/number}","issue_comment_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/comments{/number}","contents_url":"https://api.github.com/repos/andyjac/bitmap_transformer/contents/{+path}","compare_url":"https://api.github.com/repos/andyjac/bitmap_transformer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andyjac/bitmap_transformer/merges","archive_url":"https://api.github.com/repos/andyjac/bitmap_transformer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andyjac/bitmap_transformer/downloads","issues_url":"https://api.github.com/repos/andyjac/bitmap_transformer/issues{/number}","pulls_url":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls{/number}","milestones_url":"https://api.github.com/repos/andyjac/bitmap_transformer/milestones{/number}","notifications_url":"https://api.github.com/repos/andyjac/bitmap_transformer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andyjac/bitmap_transformer/labels{/name}","releases_url":"https://api.github.com/repos/andyjac/bitmap_transformer/releases{/id}","created_at":"2015-05-01T18:08:10Z","updated_at":"2015-05-01T18:12:12Z","pushed_at":"2015-05-04T00:55:19Z","git_url":"git://github.com/andyjac/bitmap_transformer.git","ssh_url":"git@github.com:andyjac/bitmap_transformer.git","clone_url":"https://github.com/andyjac/bitmap_transformer.git","svn_url":"https://github.com/andyjac/bitmap_transformer","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6"},"html":{"href":"https://github.com/andyjac/bitmap_transformer/pull/6"},"issue":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/6"},"comments":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/andyjac/bitmap_transformer/statuses/5c62c84ac219c3e4e238ad8c1076034839d162ca"}}}}