{"action":"created","comment":{"url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments/58676514","id":58676514,"diff_hunk":"@@ -0,0 +1,69 @@\n+profile = <name:'kk', age: 18}�A�аݡG\r\n+\r\n+```\r\n+p profile[\"name\"]\r\n+```\r\n+�|�o�줰�򵲪G? ������?\r\n+\r\n+Ans:\r\n+���G�|�Onil�A�]���bruby��hash�O�ϥ�<:�ܼ�>�Ӧs�J�ȡA\r\n+�s�J����}�ӦW�r�s��name�A�ҥH��n��oname���ȡA\r\n+�o�n��[:name]�~���o�C\r\n+\r\n+2.�мg�@�q Ruby �{���AŪ���ɮ� `homework-03-31-content.txt` �����e�A�b�C�@�檺�e���[�W�渹�A���o�ˡG\r\n+\r\n+```\r\n+1 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam imperdiet\r\n+2 quis arcu in tincidunt. Aliquam viverra mauris sed lorem pretium, eget\r\n+3 interdum ante pulvinar. Nullam iaculis molestie leo eu fringilla. Praesent\r\n+4 vitae commodo dui. Vivamus non urna a libero faucibus imperdiet non\r\n+5 vestibulum nulla. Maecenas vel tellus tellus. Praesent lacinia ac ipsum\r\n+6 quis lacinia. Praesent malesuada massa a semper fermentum. Nunc at elit\r\n+7 sapien. Donec molestie ac urna non varius.\r\n+8\r\n+9 Etiam efficitur purus a congue auctor. Nullam nec nisl nec est mollis\r\n+10 suscipit quis in ex. Aenean et urna est. Praesent fringilla augue ut ipsum\r\n+11 feugiat fermentum. Nulla pharetra erat sed sodales facilisis. Nulla eget\r\n+12 cursus elit. Quisque sit amet mi leo. Praesent posuere pulvinar massa,\r\n+13 fringilla pellentesque leo ornare vel. Sed vel quam varius, rutrum sem\r\n+14 ullamcorper, faucibus purus. Fusce finibus diam vitae convallis posuere.\r\n+15 Donec lacinia placerat dui in venenatis.\r\n+```\r\n+\r\n+�åB�⵲�G��X�� `result.txt`�C\r\n+```ruby\r\n+Ans;\r\n+f = File.open(homework-2016-03-31-content.txt\")\r\n+linenum = 1\r\n+  f.ecah_line do |line|\r\n+    result = \"#{linenum} #{line}\"\r\n+    linenum += 1\r\n+    f1 = File.open(\"result.txt\",\"a\")\r","path":"N1036405/homework-2016-03-31.md","position":41,"original_position":41,"commit_id":"4d4a25b6bea8621ea552172d31969668e2bf093a","original_commit_id":"f8f4fc3a56e1452f0526b96a42e904a8cfef33b8","user":{"login":"kaochenlong","id":33090,"avatar_url":"https://avatars.githubusercontent.com/u/33090?v=3","gravatar_id":"","url":"https://api.github.com/users/kaochenlong","html_url":"https://github.com/kaochenlong","followers_url":"https://api.github.com/users/kaochenlong/followers","following_url":"https://api.github.com/users/kaochenlong/following{/other_user}","gists_url":"https://api.github.com/users/kaochenlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaochenlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaochenlong/subscriptions","organizations_url":"https://api.github.com/users/kaochenlong/orgs","repos_url":"https://api.github.com/users/kaochenlong/repos","events_url":"https://api.github.com/users/kaochenlong/events{/privacy}","received_events_url":"https://api.github.com/users/kaochenlong/received_events","type":"User","site_admin":false},"body":"這樣不是好的做法，儘量避免在迴圈裡面進行讀檔、寫檔","created_at":"2016-04-06T09:29:36Z","updated_at":"2016-04-06T09:29:36Z","html_url":"https://github.com/kaochenlong/ntub_homework/pull/231#discussion_r58676514","pull_request_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231","_links":{"self":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments/58676514"},"html":{"href":"https://github.com/kaochenlong/ntub_homework/pull/231#discussion_r58676514"},"pull_request":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231"}}},"pull_request":{"url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231","id":65423509,"html_url":"https://github.com/kaochenlong/ntub_homework/pull/231","diff_url":"https://github.com/kaochenlong/ntub_homework/pull/231.diff","patch_url":"https://github.com/kaochenlong/ntub_homework/pull/231.patch","issue_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/231","number":231,"state":"open","locked":false,"title":"Homework/2016 03 31","user":{"login":"silvia0223y","id":17468308,"avatar_url":"https://avatars.githubusercontent.com/u/17468308?v=3","gravatar_id":"","url":"https://api.github.com/users/silvia0223y","html_url":"https://github.com/silvia0223y","followers_url":"https://api.github.com/users/silvia0223y/followers","following_url":"https://api.github.com/users/silvia0223y/following{/other_user}","gists_url":"https://api.github.com/users/silvia0223y/gists{/gist_id}","starred_url":"https://api.github.com/users/silvia0223y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvia0223y/subscriptions","organizations_url":"https://api.github.com/users/silvia0223y/orgs","repos_url":"https://api.github.com/users/silvia0223y/repos","events_url":"https://api.github.com/users/silvia0223y/events{/privacy}","received_events_url":"https://api.github.com/users/silvia0223y/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-06T07:51:36Z","updated_at":"2016-04-06T09:29:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab846a76a7b5cd9a4670ceb6e52a02daeb4fece8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231/commits","review_comments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231/comments","review_comment_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/231/comments","statuses_url":"https://api.github.com/repos/kaochenlong/ntub_homework/statuses/4d4a25b6bea8621ea552172d31969668e2bf093a","head":{"label":"silvia0223y:homework/2016-03-31","ref":"homework/2016-03-31","sha":"4d4a25b6bea8621ea552172d31969668e2bf093a","user":{"login":"silvia0223y","id":17468308,"avatar_url":"https://avatars.githubusercontent.com/u/17468308?v=3","gravatar_id":"","url":"https://api.github.com/users/silvia0223y","html_url":"https://github.com/silvia0223y","followers_url":"https://api.github.com/users/silvia0223y/followers","following_url":"https://api.github.com/users/silvia0223y/following{/other_user}","gists_url":"https://api.github.com/users/silvia0223y/gists{/gist_id}","starred_url":"https://api.github.com/users/silvia0223y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvia0223y/subscriptions","organizations_url":"https://api.github.com/users/silvia0223y/orgs","repos_url":"https://api.github.com/users/silvia0223y/repos","events_url":"https://api.github.com/users/silvia0223y/events{/privacy}","received_events_url":"https://api.github.com/users/silvia0223y/received_events","type":"User","site_admin":false},"repo":{"id":55581587,"name":"ntub_homework","full_name":"silvia0223y/ntub_homework","owner":{"login":"silvia0223y","id":17468308,"avatar_url":"https://avatars.githubusercontent.com/u/17468308?v=3","gravatar_id":"","url":"https://api.github.com/users/silvia0223y","html_url":"https://github.com/silvia0223y","followers_url":"https://api.github.com/users/silvia0223y/followers","following_url":"https://api.github.com/users/silvia0223y/following{/other_user}","gists_url":"https://api.github.com/users/silvia0223y/gists{/gist_id}","starred_url":"https://api.github.com/users/silvia0223y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvia0223y/subscriptions","organizations_url":"https://api.github.com/users/silvia0223y/orgs","repos_url":"https://api.github.com/users/silvia0223y/repos","events_url":"https://api.github.com/users/silvia0223y/events{/privacy}","received_events_url":"https://api.github.com/users/silvia0223y/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silvia0223y/ntub_homework","description":"","fork":true,"url":"https://api.github.com/repos/silvia0223y/ntub_homework","forks_url":"https://api.github.com/repos/silvia0223y/ntub_homework/forks","keys_url":"https://api.github.com/repos/silvia0223y/ntub_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silvia0223y/ntub_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silvia0223y/ntub_homework/teams","hooks_url":"https://api.github.com/repos/silvia0223y/ntub_homework/hooks","issue_events_url":"https://api.github.com/repos/silvia0223y/ntub_homework/issues/events{/number}","events_url":"https://api.github.com/repos/silvia0223y/ntub_homework/events","assignees_url":"https://api.github.com/repos/silvia0223y/ntub_homework/assignees{/user}","branches_url":"https://api.github.com/repos/silvia0223y/ntub_homework/branches{/branch}","tags_url":"https://api.github.com/repos/silvia0223y/ntub_homework/tags","blobs_url":"https://api.github.com/repos/silvia0223y/ntub_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silvia0223y/ntub_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silvia0223y/ntub_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/silvia0223y/ntub_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silvia0223y/ntub_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/silvia0223y/ntub_homework/languages","stargazers_url":"https://api.github.com/repos/silvia0223y/ntub_homework/stargazers","contributors_url":"https://api.github.com/repos/silvia0223y/ntub_homework/contributors","subscribers_url":"https://api.github.com/repos/silvia0223y/ntub_homework/subscribers","subscription_url":"https://api.github.com/repos/silvia0223y/ntub_homework/subscription","commits_url":"https://api.github.com/repos/silvia0223y/ntub_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/silvia0223y/ntub_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/silvia0223y/ntub_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/silvia0223y/ntub_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/silvia0223y/ntub_homework/contents/{+path}","compare_url":"https://api.github.com/repos/silvia0223y/ntub_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silvia0223y/ntub_homework/merges","archive_url":"https://api.github.com/repos/silvia0223y/ntub_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silvia0223y/ntub_homework/downloads","issues_url":"https://api.github.com/repos/silvia0223y/ntub_homework/issues{/number}","pulls_url":"https://api.github.com/repos/silvia0223y/ntub_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/silvia0223y/ntub_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/silvia0223y/ntub_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silvia0223y/ntub_homework/labels{/name}","releases_url":"https://api.github.com/repos/silvia0223y/ntub_homework/releases{/id}","deployments_url":"https://api.github.com/repos/silvia0223y/ntub_homework/deployments","created_at":"2016-04-06T06:34:15Z","updated_at":"2016-04-06T06:34:17Z","pushed_at":"2016-04-06T07:50:21Z","git_url":"git://github.com/silvia0223y/ntub_homework.git","ssh_url":"git@github.com:silvia0223y/ntub_homework.git","clone_url":"https://github.com/silvia0223y/ntub_homework.git","svn_url":"https://github.com/silvia0223y/ntub_homework","homepage":null,"size":185,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"kaochenlong:homework/2016-03-31","ref":"homework/2016-03-31","sha":"6184b4ba2b70a969b7148bc517fce735b7592512","user":{"login":"kaochenlong","id":33090,"avatar_url":"https://avatars.githubusercontent.com/u/33090?v=3","gravatar_id":"","url":"https://api.github.com/users/kaochenlong","html_url":"https://github.com/kaochenlong","followers_url":"https://api.github.com/users/kaochenlong/followers","following_url":"https://api.github.com/users/kaochenlong/following{/other_user}","gists_url":"https://api.github.com/users/kaochenlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaochenlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaochenlong/subscriptions","organizations_url":"https://api.github.com/users/kaochenlong/orgs","repos_url":"https://api.github.com/users/kaochenlong/repos","events_url":"https://api.github.com/users/kaochenlong/events{/privacy}","received_events_url":"https://api.github.com/users/kaochenlong/received_events","type":"User","site_admin":false},"repo":{"id":53560337,"name":"ntub_homework","full_name":"kaochenlong/ntub_homework","owner":{"login":"kaochenlong","id":33090,"avatar_url":"https://avatars.githubusercontent.com/u/33090?v=3","gravatar_id":"","url":"https://api.github.com/users/kaochenlong","html_url":"https://github.com/kaochenlong","followers_url":"https://api.github.com/users/kaochenlong/followers","following_url":"https://api.github.com/users/kaochenlong/following{/other_user}","gists_url":"https://api.github.com/users/kaochenlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kaochenlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaochenlong/subscriptions","organizations_url":"https://api.github.com/users/kaochenlong/orgs","repos_url":"https://api.github.com/users/kaochenlong/repos","events_url":"https://api.github.com/users/kaochenlong/events{/privacy}","received_events_url":"https://api.github.com/users/kaochenlong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaochenlong/ntub_homework","description":"","fork":false,"url":"https://api.github.com/repos/kaochenlong/ntub_homework","forks_url":"https://api.github.com/repos/kaochenlong/ntub_homework/forks","keys_url":"https://api.github.com/repos/kaochenlong/ntub_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaochenlong/ntub_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaochenlong/ntub_homework/teams","hooks_url":"https://api.github.com/repos/kaochenlong/ntub_homework/hooks","issue_events_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/events{/number}","events_url":"https://api.github.com/repos/kaochenlong/ntub_homework/events","assignees_url":"https://api.github.com/repos/kaochenlong/ntub_homework/assignees{/user}","branches_url":"https://api.github.com/repos/kaochenlong/ntub_homework/branches{/branch}","tags_url":"https://api.github.com/repos/kaochenlong/ntub_homework/tags","blobs_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaochenlong/ntub_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/kaochenlong/ntub_homework/languages","stargazers_url":"https://api.github.com/repos/kaochenlong/ntub_homework/stargazers","contributors_url":"https://api.github.com/repos/kaochenlong/ntub_homework/contributors","subscribers_url":"https://api.github.com/repos/kaochenlong/ntub_homework/subscribers","subscription_url":"https://api.github.com/repos/kaochenlong/ntub_homework/subscription","commits_url":"https://api.github.com/repos/kaochenlong/ntub_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaochenlong/ntub_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaochenlong/ntub_homework/contents/{+path}","compare_url":"https://api.github.com/repos/kaochenlong/ntub_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaochenlong/ntub_homework/merges","archive_url":"https://api.github.com/repos/kaochenlong/ntub_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaochenlong/ntub_homework/downloads","issues_url":"https://api.github.com/repos/kaochenlong/ntub_homework/issues{/number}","pulls_url":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/kaochenlong/ntub_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/kaochenlong/ntub_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaochenlong/ntub_homework/labels{/name}","releases_url":"https://api.github.com/repos/kaochenlong/ntub_homework/releases{/id}","deployments_url":"https://api.github.com/repos/kaochenlong/ntub_homework/deployments","created_at":"2016-03-10T06:16:39Z","updated_at":"2016-03-30T17:22:42Z","pushed_at":"2016-04-06T09:23:05Z","git_url":"git://github.com/kaochenlong/ntub_homework.git","ssh_url":"git@github.com:kaochenlong/ntub_homework.git","clone_url":"https://github.com/kaochenlong/ntub_homework.git","svn_url":"https://github.com/kaochenlong/ntub_homework","homepage":null,"size":323,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":4,"forks":46,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231"},"html":{"href":"https://github.com/kaochenlong/ntub_homework/pull/231"},"issue":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/231"},"comments":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/kaochenlong/ntub_homework/statuses/4d4a25b6bea8621ea552172d31969668e2bf093a"}}}}