{"action":"created","comment":{"url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/comments/31409832","id":31409832,"diff_hunk":"@@ -0,0 +1,23 @@\n+Skrive et program som bruker en **asynkron** operasjon mot filesystemet for å lese en fil, og skrive ut antallet newlines (\\n) den inneholder til skjermen (stdout). Tilsvarer det samme som å kjøre kommandoen  `cat file | wc -l`.\n+\n+Hele filstien til filen du skal lese vil bli sendt inn som første kommandolinjeargument.\n+\n+----------------------------------------------------------------------\n+# HINT\n+\n+Løsningen på problemet er nesten identisk med løsningen på det forje problemet. Eneste forskjellen er at du må løse problemet på **Node.js måten**: asynkront.\n+\n+Istede for å bruke `fs.readFileSync()` vil du nå benytte `fs.readFile()`. Denne vil ikke returnere svaret som i forje oppgave, men gi svaret i en callback funksjon. Callback funksjonen skal gis som det andre parameteret til `fs.readFile()`. For å lære mer om callbacks kan du lese https://github.com/maxogden/art-of-node#callbacks.","path":"exercises/my_first_async_io/problem.nb-no.md","position":10,"original_position":10,"commit_id":"ac30c445c3ed6dd6a2895ca23f4b007909aea0b6","original_commit_id":"ac30c445c3ed6dd6a2895ca23f4b007909aea0b6","user":{"login":"phillipj","id":1231635,"avatar_url":"https://avatars.githubusercontent.com/u/1231635?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipj","html_url":"https://github.com/phillipj","followers_url":"https://api.github.com/users/phillipj/followers","following_url":"https://api.github.com/users/phillipj/following{/other_user}","gists_url":"https://api.github.com/users/phillipj/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipj/subscriptions","organizations_url":"https://api.github.com/users/phillipj/orgs","repos_url":"https://api.github.com/users/phillipj/repos","events_url":"https://api.github.com/users/phillipj/events{/privacy}","received_events_url":"https://api.github.com/users/phillipj/received_events","type":"User","site_admin":false},"body":"\"forje\" -> \"forrige\"?","created_at":"2015-06-01T09:08:47Z","updated_at":"2015-06-01T09:08:47Z","html_url":"https://github.com/nodeschool-no/learnyounode/pull/1#discussion_r31409832","pull_request_url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/comments/31409832"},"html":{"href":"https://github.com/nodeschool-no/learnyounode/pull/1#discussion_r31409832"},"pull_request":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1","id":36609716,"html_url":"https://github.com/nodeschool-no/learnyounode/pull/1","diff_url":"https://github.com/nodeschool-no/learnyounode/pull/1.diff","patch_url":"https://github.com/nodeschool-no/learnyounode/pull/1.patch","issue_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/1","number":1,"state":"open","locked":false,"title":"Norwegian translation of the my_first_async_io exercise","user":{"login":"Torsph","id":1153104,"avatar_url":"https://avatars.githubusercontent.com/u/1153104?v=3","gravatar_id":"","url":"https://api.github.com/users/Torsph","html_url":"https://github.com/Torsph","followers_url":"https://api.github.com/users/Torsph/followers","following_url":"https://api.github.com/users/Torsph/following{/other_user}","gists_url":"https://api.github.com/users/Torsph/gists{/gist_id}","starred_url":"https://api.github.com/users/Torsph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Torsph/subscriptions","organizations_url":"https://api.github.com/users/Torsph/orgs","repos_url":"https://api.github.com/users/Torsph/repos","events_url":"https://api.github.com/users/Torsph/events{/privacy}","received_events_url":"https://api.github.com/users/Torsph/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-01T08:57:02Z","updated_at":"2015-06-01T09:08:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9e1d0b0ded4198b174dbde1ef68b26ea19f4ce5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/1/comments","statuses_url":"https://api.github.com/repos/nodeschool-no/learnyounode/statuses/ac30c445c3ed6dd6a2895ca23f4b007909aea0b6","head":{"label":"nodeschool-no:my_first_async_io_norwegian","ref":"my_first_async_io_norwegian","sha":"ac30c445c3ed6dd6a2895ca23f4b007909aea0b6","user":{"login":"nodeschool-no","id":12680153,"avatar_url":"https://avatars.githubusercontent.com/u/12680153?v=3","gravatar_id":"","url":"https://api.github.com/users/nodeschool-no","html_url":"https://github.com/nodeschool-no","followers_url":"https://api.github.com/users/nodeschool-no/followers","following_url":"https://api.github.com/users/nodeschool-no/following{/other_user}","gists_url":"https://api.github.com/users/nodeschool-no/gists{/gist_id}","starred_url":"https://api.github.com/users/nodeschool-no/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodeschool-no/subscriptions","organizations_url":"https://api.github.com/users/nodeschool-no/orgs","repos_url":"https://api.github.com/users/nodeschool-no/repos","events_url":"https://api.github.com/users/nodeschool-no/events{/privacy}","received_events_url":"https://api.github.com/users/nodeschool-no/received_events","type":"Organization","site_admin":false},"repo":{"id":36549815,"name":"learnyounode","full_name":"nodeschool-no/learnyounode","owner":{"login":"nodeschool-no","id":12680153,"avatar_url":"https://avatars.githubusercontent.com/u/12680153?v=3","gravatar_id":"","url":"https://api.github.com/users/nodeschool-no","html_url":"https://github.com/nodeschool-no","followers_url":"https://api.github.com/users/nodeschool-no/followers","following_url":"https://api.github.com/users/nodeschool-no/following{/other_user}","gists_url":"https://api.github.com/users/nodeschool-no/gists{/gist_id}","starred_url":"https://api.github.com/users/nodeschool-no/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodeschool-no/subscriptions","organizations_url":"https://api.github.com/users/nodeschool-no/orgs","repos_url":"https://api.github.com/users/nodeschool-no/repos","events_url":"https://api.github.com/users/nodeschool-no/events{/privacy}","received_events_url":"https://api.github.com/users/nodeschool-no/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodeschool-no/learnyounode","description":"Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.","fork":true,"url":"https://api.github.com/repos/nodeschool-no/learnyounode","forks_url":"https://api.github.com/repos/nodeschool-no/learnyounode/forks","keys_url":"https://api.github.com/repos/nodeschool-no/learnyounode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodeschool-no/learnyounode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodeschool-no/learnyounode/teams","hooks_url":"https://api.github.com/repos/nodeschool-no/learnyounode/hooks","issue_events_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/events{/number}","events_url":"https://api.github.com/repos/nodeschool-no/learnyounode/events","assignees_url":"https://api.github.com/repos/nodeschool-no/learnyounode/assignees{/user}","branches_url":"https://api.github.com/repos/nodeschool-no/learnyounode/branches{/branch}","tags_url":"https://api.github.com/repos/nodeschool-no/learnyounode/tags","blobs_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodeschool-no/learnyounode/statuses/{sha}","languages_url":"https://api.github.com/repos/nodeschool-no/learnyounode/languages","stargazers_url":"https://api.github.com/repos/nodeschool-no/learnyounode/stargazers","contributors_url":"https://api.github.com/repos/nodeschool-no/learnyounode/contributors","subscribers_url":"https://api.github.com/repos/nodeschool-no/learnyounode/subscribers","subscription_url":"https://api.github.com/repos/nodeschool-no/learnyounode/subscription","commits_url":"https://api.github.com/repos/nodeschool-no/learnyounode/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodeschool-no/learnyounode/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodeschool-no/learnyounode/contents/{+path}","compare_url":"https://api.github.com/repos/nodeschool-no/learnyounode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodeschool-no/learnyounode/merges","archive_url":"https://api.github.com/repos/nodeschool-no/learnyounode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodeschool-no/learnyounode/downloads","issues_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues{/number}","pulls_url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls{/number}","milestones_url":"https://api.github.com/repos/nodeschool-no/learnyounode/milestones{/number}","notifications_url":"https://api.github.com/repos/nodeschool-no/learnyounode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodeschool-no/learnyounode/labels{/name}","releases_url":"https://api.github.com/repos/nodeschool-no/learnyounode/releases{/id}","created_at":"2015-05-30T08:21:12Z","updated_at":"2015-05-31T06:03:27Z","pushed_at":"2015-06-01T08:57:02Z","git_url":"git://github.com/nodeschool-no/learnyounode.git","ssh_url":"git@github.com:nodeschool-no/learnyounode.git","clone_url":"https://github.com/nodeschool-no/learnyounode.git","svn_url":"https://github.com/nodeschool-no/learnyounode","homepage":"","size":1266,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nodeschool-no:norwegian","ref":"norwegian","sha":"846a84b28fac144d8885f8414777c5777908f5a8","user":{"login":"nodeschool-no","id":12680153,"avatar_url":"https://avatars.githubusercontent.com/u/12680153?v=3","gravatar_id":"","url":"https://api.github.com/users/nodeschool-no","html_url":"https://github.com/nodeschool-no","followers_url":"https://api.github.com/users/nodeschool-no/followers","following_url":"https://api.github.com/users/nodeschool-no/following{/other_user}","gists_url":"https://api.github.com/users/nodeschool-no/gists{/gist_id}","starred_url":"https://api.github.com/users/nodeschool-no/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodeschool-no/subscriptions","organizations_url":"https://api.github.com/users/nodeschool-no/orgs","repos_url":"https://api.github.com/users/nodeschool-no/repos","events_url":"https://api.github.com/users/nodeschool-no/events{/privacy}","received_events_url":"https://api.github.com/users/nodeschool-no/received_events","type":"Organization","site_admin":false},"repo":{"id":36549815,"name":"learnyounode","full_name":"nodeschool-no/learnyounode","owner":{"login":"nodeschool-no","id":12680153,"avatar_url":"https://avatars.githubusercontent.com/u/12680153?v=3","gravatar_id":"","url":"https://api.github.com/users/nodeschool-no","html_url":"https://github.com/nodeschool-no","followers_url":"https://api.github.com/users/nodeschool-no/followers","following_url":"https://api.github.com/users/nodeschool-no/following{/other_user}","gists_url":"https://api.github.com/users/nodeschool-no/gists{/gist_id}","starred_url":"https://api.github.com/users/nodeschool-no/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodeschool-no/subscriptions","organizations_url":"https://api.github.com/users/nodeschool-no/orgs","repos_url":"https://api.github.com/users/nodeschool-no/repos","events_url":"https://api.github.com/users/nodeschool-no/events{/privacy}","received_events_url":"https://api.github.com/users/nodeschool-no/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodeschool-no/learnyounode","description":"Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.","fork":true,"url":"https://api.github.com/repos/nodeschool-no/learnyounode","forks_url":"https://api.github.com/repos/nodeschool-no/learnyounode/forks","keys_url":"https://api.github.com/repos/nodeschool-no/learnyounode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodeschool-no/learnyounode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodeschool-no/learnyounode/teams","hooks_url":"https://api.github.com/repos/nodeschool-no/learnyounode/hooks","issue_events_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/events{/number}","events_url":"https://api.github.com/repos/nodeschool-no/learnyounode/events","assignees_url":"https://api.github.com/repos/nodeschool-no/learnyounode/assignees{/user}","branches_url":"https://api.github.com/repos/nodeschool-no/learnyounode/branches{/branch}","tags_url":"https://api.github.com/repos/nodeschool-no/learnyounode/tags","blobs_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodeschool-no/learnyounode/statuses/{sha}","languages_url":"https://api.github.com/repos/nodeschool-no/learnyounode/languages","stargazers_url":"https://api.github.com/repos/nodeschool-no/learnyounode/stargazers","contributors_url":"https://api.github.com/repos/nodeschool-no/learnyounode/contributors","subscribers_url":"https://api.github.com/repos/nodeschool-no/learnyounode/subscribers","subscription_url":"https://api.github.com/repos/nodeschool-no/learnyounode/subscription","commits_url":"https://api.github.com/repos/nodeschool-no/learnyounode/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodeschool-no/learnyounode/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodeschool-no/learnyounode/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodeschool-no/learnyounode/contents/{+path}","compare_url":"https://api.github.com/repos/nodeschool-no/learnyounode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodeschool-no/learnyounode/merges","archive_url":"https://api.github.com/repos/nodeschool-no/learnyounode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodeschool-no/learnyounode/downloads","issues_url":"https://api.github.com/repos/nodeschool-no/learnyounode/issues{/number}","pulls_url":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls{/number}","milestones_url":"https://api.github.com/repos/nodeschool-no/learnyounode/milestones{/number}","notifications_url":"https://api.github.com/repos/nodeschool-no/learnyounode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodeschool-no/learnyounode/labels{/name}","releases_url":"https://api.github.com/repos/nodeschool-no/learnyounode/releases{/id}","created_at":"2015-05-30T08:21:12Z","updated_at":"2015-05-31T06:03:27Z","pushed_at":"2015-06-01T08:57:02Z","git_url":"git://github.com/nodeschool-no/learnyounode.git","ssh_url":"git@github.com:nodeschool-no/learnyounode.git","clone_url":"https://github.com/nodeschool-no/learnyounode.git","svn_url":"https://github.com/nodeschool-no/learnyounode","homepage":"","size":1266,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1"},"html":{"href":"https://github.com/nodeschool-no/learnyounode/pull/1"},"issue":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/1"},"comments":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nodeschool-no/learnyounode/statuses/ac30c445c3ed6dd6a2895ca23f4b007909aea0b6"}}}}