{"action":"created","comment":{"url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/comments/66478989","id":66478989,"diff_hunk":"@@ -0,0 +1,87 @@\n+package co.refiere.services.qrcode;\n+\n+import com.google.zxing.BinaryBitmap;\n+import com.google.zxing.LuminanceSource;\n+import com.google.zxing.Result;\n+import com.google.zxing.client.j2se.BufferedImageLuminanceSource;\n+import com.google.zxing.common.BitMatrix;\n+import com.google.zxing.common.HybridBinarizer;\n+import com.google.zxing.qrcode.QRCodeReader;\n+import com.google.zxing.qrcode.QRCodeWriter;\n+\n+import co.refiere.resources.base.QRCodeRequest;\n+\n+import javax.imageio.ImageIO;\n+import java.awt.*;\n+import java.awt.image.BufferedImage;\n+import java.io.File;\n+import java.io.FileInputStream;\n+\n+public class QRCodeService {\n+\n+    public void generateQRCode(QRCodeRequest qrRequest) {\n+\n+        QRCodeService qr = new QRCodeService();\n+        File f = new File(\"qrRefiere.png\");\n+        String text = \"http://www.refiere.co/id/%s/cam/%s\";","path":"src/main/java/co/refiere/services/qrcode/QRCodeService.java","position":26,"original_position":26,"commit_id":"ed8a8e899ccbdb3d382fa05fba30b84fa7ebb6ca","original_commit_id":"ed8a8e899ccbdb3d382fa05fba30b84fa7ebb6ca","user":{"login":"tebanhdez","id":1818178,"avatar_url":"https://avatars.githubusercontent.com/u/1818178?v=3","gravatar_id":"","url":"https://api.github.com/users/tebanhdez","html_url":"https://github.com/tebanhdez","followers_url":"https://api.github.com/users/tebanhdez/followers","following_url":"https://api.github.com/users/tebanhdez/following{/other_user}","gists_url":"https://api.github.com/users/tebanhdez/gists{/gist_id}","starred_url":"https://api.github.com/users/tebanhdez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tebanhdez/subscriptions","organizations_url":"https://api.github.com/users/tebanhdez/orgs","repos_url":"https://api.github.com/users/tebanhdez/repos","events_url":"https://api.github.com/users/tebanhdez/events{/privacy}","received_events_url":"https://api.github.com/users/tebanhdez/received_events","type":"User","site_admin":false},"body":"Extract this in a properties file","created_at":"2016-06-09T16:54:22Z","updated_at":"2016-06-09T16:54:22Z","html_url":"https://github.com/tebanhdez/refiere.co/pull/14#discussion_r66478989","pull_request_url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/comments/66478989"},"html":{"href":"https://github.com/tebanhdez/refiere.co/pull/14#discussion_r66478989"},"pull_request":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14","id":71408420,"html_url":"https://github.com/tebanhdez/refiere.co/pull/14","diff_url":"https://github.com/tebanhdez/refiere.co/pull/14.diff","patch_url":"https://github.com/tebanhdez/refiere.co/pull/14.patch","issue_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues/14","number":14,"state":"open","locked":false,"title":"ReferalCodeResource, bug fixes","user":{"login":"pfernandez01","id":16561762,"avatar_url":"https://avatars.githubusercontent.com/u/16561762?v=3","gravatar_id":"","url":"https://api.github.com/users/pfernandez01","html_url":"https://github.com/pfernandez01","followers_url":"https://api.github.com/users/pfernandez01/followers","following_url":"https://api.github.com/users/pfernandez01/following{/other_user}","gists_url":"https://api.github.com/users/pfernandez01/gists{/gist_id}","starred_url":"https://api.github.com/users/pfernandez01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfernandez01/subscriptions","organizations_url":"https://api.github.com/users/pfernandez01/orgs","repos_url":"https://api.github.com/users/pfernandez01/repos","events_url":"https://api.github.com/users/pfernandez01/events{/privacy}","received_events_url":"https://api.github.com/users/pfernandez01/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-25T15:07:27Z","updated_at":"2016-06-09T16:54:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7977b23007272e1469c306e92056183938914d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14/commits","review_comments_url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14/comments","review_comment_url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues/14/comments","statuses_url":"https://api.github.com/repos/tebanhdez/refiere.co/statuses/ed8a8e899ccbdb3d382fa05fba30b84fa7ebb6ca","head":{"label":"tebanhdez:fix_referral_code","ref":"fix_referral_code","sha":"ed8a8e899ccbdb3d382fa05fba30b84fa7ebb6ca","user":{"login":"tebanhdez","id":1818178,"avatar_url":"https://avatars.githubusercontent.com/u/1818178?v=3","gravatar_id":"","url":"https://api.github.com/users/tebanhdez","html_url":"https://github.com/tebanhdez","followers_url":"https://api.github.com/users/tebanhdez/followers","following_url":"https://api.github.com/users/tebanhdez/following{/other_user}","gists_url":"https://api.github.com/users/tebanhdez/gists{/gist_id}","starred_url":"https://api.github.com/users/tebanhdez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tebanhdez/subscriptions","organizations_url":"https://api.github.com/users/tebanhdez/orgs","repos_url":"https://api.github.com/users/tebanhdez/repos","events_url":"https://api.github.com/users/tebanhdez/events{/privacy}","received_events_url":"https://api.github.com/users/tebanhdez/received_events","type":"User","site_admin":false},"repo":{"id":56186747,"name":"refiere.co","full_name":"tebanhdez/refiere.co","owner":{"login":"tebanhdez","id":1818178,"avatar_url":"https://avatars.githubusercontent.com/u/1818178?v=3","gravatar_id":"","url":"https://api.github.com/users/tebanhdez","html_url":"https://github.com/tebanhdez","followers_url":"https://api.github.com/users/tebanhdez/followers","following_url":"https://api.github.com/users/tebanhdez/following{/other_user}","gists_url":"https://api.github.com/users/tebanhdez/gists{/gist_id}","starred_url":"https://api.github.com/users/tebanhdez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tebanhdez/subscriptions","organizations_url":"https://api.github.com/users/tebanhdez/orgs","repos_url":"https://api.github.com/users/tebanhdez/repos","events_url":"https://api.github.com/users/tebanhdez/events{/privacy}","received_events_url":"https://api.github.com/users/tebanhdez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tebanhdez/refiere.co","description":"Refiere.co","fork":false,"url":"https://api.github.com/repos/tebanhdez/refiere.co","forks_url":"https://api.github.com/repos/tebanhdez/refiere.co/forks","keys_url":"https://api.github.com/repos/tebanhdez/refiere.co/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tebanhdez/refiere.co/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tebanhdez/refiere.co/teams","hooks_url":"https://api.github.com/repos/tebanhdez/refiere.co/hooks","issue_events_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues/events{/number}","events_url":"https://api.github.com/repos/tebanhdez/refiere.co/events","assignees_url":"https://api.github.com/repos/tebanhdez/refiere.co/assignees{/user}","branches_url":"https://api.github.com/repos/tebanhdez/refiere.co/branches{/branch}","tags_url":"https://api.github.com/repos/tebanhdez/refiere.co/tags","blobs_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/refs{/sha}","trees_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tebanhdez/refiere.co/statuses/{sha}","languages_url":"https://api.github.com/repos/tebanhdez/refiere.co/languages","stargazers_url":"https://api.github.com/repos/tebanhdez/refiere.co/stargazers","contributors_url":"https://api.github.com/repos/tebanhdez/refiere.co/contributors","subscribers_url":"https://api.github.com/repos/tebanhdez/refiere.co/subscribers","subscription_url":"https://api.github.com/repos/tebanhdez/refiere.co/subscription","commits_url":"https://api.github.com/repos/tebanhdez/refiere.co/commits{/sha}","git_commits_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/commits{/sha}","comments_url":"https://api.github.com/repos/tebanhdez/refiere.co/comments{/number}","issue_comment_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues/comments{/number}","contents_url":"https://api.github.com/repos/tebanhdez/refiere.co/contents/{+path}","compare_url":"https://api.github.com/repos/tebanhdez/refiere.co/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tebanhdez/refiere.co/merges","archive_url":"https://api.github.com/repos/tebanhdez/refiere.co/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tebanhdez/refiere.co/downloads","issues_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues{/number}","pulls_url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls{/number}","milestones_url":"https://api.github.com/repos/tebanhdez/refiere.co/milestones{/number}","notifications_url":"https://api.github.com/repos/tebanhdez/refiere.co/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tebanhdez/refiere.co/labels{/name}","releases_url":"https://api.github.com/repos/tebanhdez/refiere.co/releases{/id}","deployments_url":"https://api.github.com/repos/tebanhdez/refiere.co/deployments","created_at":"2016-04-13T21:17:05Z","updated_at":"2016-04-27T20:02:09Z","pushed_at":"2016-06-08T23:36:14Z","git_url":"git://github.com/tebanhdez/refiere.co.git","ssh_url":"git@github.com:tebanhdez/refiere.co.git","clone_url":"https://github.com/tebanhdez/refiere.co.git","svn_url":"https://github.com/tebanhdez/refiere.co","homepage":null,"size":1554,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"dev"}},"base":{"label":"tebanhdez:dev","ref":"dev","sha":"530b465d6d325e7693db77eaf8869a4ad71aca6b","user":{"login":"tebanhdez","id":1818178,"avatar_url":"https://avatars.githubusercontent.com/u/1818178?v=3","gravatar_id":"","url":"https://api.github.com/users/tebanhdez","html_url":"https://github.com/tebanhdez","followers_url":"https://api.github.com/users/tebanhdez/followers","following_url":"https://api.github.com/users/tebanhdez/following{/other_user}","gists_url":"https://api.github.com/users/tebanhdez/gists{/gist_id}","starred_url":"https://api.github.com/users/tebanhdez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tebanhdez/subscriptions","organizations_url":"https://api.github.com/users/tebanhdez/orgs","repos_url":"https://api.github.com/users/tebanhdez/repos","events_url":"https://api.github.com/users/tebanhdez/events{/privacy}","received_events_url":"https://api.github.com/users/tebanhdez/received_events","type":"User","site_admin":false},"repo":{"id":56186747,"name":"refiere.co","full_name":"tebanhdez/refiere.co","owner":{"login":"tebanhdez","id":1818178,"avatar_url":"https://avatars.githubusercontent.com/u/1818178?v=3","gravatar_id":"","url":"https://api.github.com/users/tebanhdez","html_url":"https://github.com/tebanhdez","followers_url":"https://api.github.com/users/tebanhdez/followers","following_url":"https://api.github.com/users/tebanhdez/following{/other_user}","gists_url":"https://api.github.com/users/tebanhdez/gists{/gist_id}","starred_url":"https://api.github.com/users/tebanhdez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tebanhdez/subscriptions","organizations_url":"https://api.github.com/users/tebanhdez/orgs","repos_url":"https://api.github.com/users/tebanhdez/repos","events_url":"https://api.github.com/users/tebanhdez/events{/privacy}","received_events_url":"https://api.github.com/users/tebanhdez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tebanhdez/refiere.co","description":"Refiere.co","fork":false,"url":"https://api.github.com/repos/tebanhdez/refiere.co","forks_url":"https://api.github.com/repos/tebanhdez/refiere.co/forks","keys_url":"https://api.github.com/repos/tebanhdez/refiere.co/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tebanhdez/refiere.co/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tebanhdez/refiere.co/teams","hooks_url":"https://api.github.com/repos/tebanhdez/refiere.co/hooks","issue_events_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues/events{/number}","events_url":"https://api.github.com/repos/tebanhdez/refiere.co/events","assignees_url":"https://api.github.com/repos/tebanhdez/refiere.co/assignees{/user}","branches_url":"https://api.github.com/repos/tebanhdez/refiere.co/branches{/branch}","tags_url":"https://api.github.com/repos/tebanhdez/refiere.co/tags","blobs_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/refs{/sha}","trees_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tebanhdez/refiere.co/statuses/{sha}","languages_url":"https://api.github.com/repos/tebanhdez/refiere.co/languages","stargazers_url":"https://api.github.com/repos/tebanhdez/refiere.co/stargazers","contributors_url":"https://api.github.com/repos/tebanhdez/refiere.co/contributors","subscribers_url":"https://api.github.com/repos/tebanhdez/refiere.co/subscribers","subscription_url":"https://api.github.com/repos/tebanhdez/refiere.co/subscription","commits_url":"https://api.github.com/repos/tebanhdez/refiere.co/commits{/sha}","git_commits_url":"https://api.github.com/repos/tebanhdez/refiere.co/git/commits{/sha}","comments_url":"https://api.github.com/repos/tebanhdez/refiere.co/comments{/number}","issue_comment_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues/comments{/number}","contents_url":"https://api.github.com/repos/tebanhdez/refiere.co/contents/{+path}","compare_url":"https://api.github.com/repos/tebanhdez/refiere.co/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tebanhdez/refiere.co/merges","archive_url":"https://api.github.com/repos/tebanhdez/refiere.co/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tebanhdez/refiere.co/downloads","issues_url":"https://api.github.com/repos/tebanhdez/refiere.co/issues{/number}","pulls_url":"https://api.github.com/repos/tebanhdez/refiere.co/pulls{/number}","milestones_url":"https://api.github.com/repos/tebanhdez/refiere.co/milestones{/number}","notifications_url":"https://api.github.com/repos/tebanhdez/refiere.co/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tebanhdez/refiere.co/labels{/name}","releases_url":"https://api.github.com/repos/tebanhdez/refiere.co/releases{/id}","deployments_url":"https://api.github.com/repos/tebanhdez/refiere.co/deployments","created_at":"2016-04-13T21:17:05Z","updated_at":"2016-04-27T20:02:09Z","pushed_at":"2016-06-08T23:36:14Z","git_url":"git://github.com/tebanhdez/refiere.co.git","ssh_url":"git@github.com:tebanhdez/refiere.co.git","clone_url":"https://github.com/tebanhdez/refiere.co.git","svn_url":"https://github.com/tebanhdez/refiere.co","homepage":null,"size":1554,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14"},"html":{"href":"https://github.com/tebanhdez/refiere.co/pull/14"},"issue":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/issues/14"},"comments":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/tebanhdez/refiere.co/statuses/ed8a8e899ccbdb3d382fa05fba30b84fa7ebb6ca"}}}}
{"actor":{"display_login":"tebanhdez"}}