{"action":"created","comment":{"url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/comments/212428398","pull_request_review_id":149060877,"id":212428398,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjQyODM5OA==","diff_hunk":"@@ -0,0 +1,303 @@\n+---\n+layout: article\n+section: Blog\n+title: Elixir TIL - Numbers, iex and pipes\n+author: \"Niklas Long\"\n+github-handle: niklaslong\n+---\n+\n+This is a collection of tips and tricks I've come across over the last year of working with Elixir.\n+\n+<!--break-->\n+\n+#### Time after time\n+\n+Sometimes one needs to time things or convert time to other units. Enter Erlang's `timer` module, which defines some wonderfully convenient functions you can call from Elixir:","path":"blog/_posts/2018-05-17-elixir-til-vol-1-numbers-iex-and-pipes.md","position":15,"original_position":15,"commit_id":"7323a3518fd7d5554ed25f01f64b8bea8cad832e","original_commit_id":"7323a3518fd7d5554ed25f01f64b8bea8cad832e","user":{"login":"marcoow","id":1510,"node_id":"MDQ6VXNlcjE1MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1510?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoow","html_url":"https://github.com/marcoow","followers_url":"https://api.github.com/users/marcoow/followers","following_url":"https://api.github.com/users/marcoow/following{/other_user}","gists_url":"https://api.github.com/users/marcoow/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoow/subscriptions","organizations_url":"https://api.github.com/users/marcoow/orgs","repos_url":"https://api.github.com/users/marcoow/repos","events_url":"https://api.github.com/users/marcoow/events{/privacy}","received_events_url":"https://api.github.com/users/marcoow/received_events","type":"User","site_admin":false},"body":"This is not really about converting but getting the milliseconds for various inputs - I think this is a good example but I'd phrase this intro a bit different to better match the following example.","created_at":"2018-08-23T19:23:52Z","updated_at":"2018-08-23T19:38:25Z","html_url":"https://github.com/simplabs/simplabs.github.io/pull/191#discussion_r212428398","pull_request_url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/comments/212428398"},"html":{"href":"https://github.com/simplabs/simplabs.github.io/pull/191#discussion_r212428398"},"pull_request":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191"}}},"pull_request":{"url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191","id":182201570,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgyMjAxNTcw","html_url":"https://github.com/simplabs/simplabs.github.io/pull/191","diff_url":"https://github.com/simplabs/simplabs.github.io/pull/191.diff","patch_url":"https://github.com/simplabs/simplabs.github.io/pull/191.patch","issue_url":"https://api.github.com/repos/simplabs/simplabs.github.io/issues/191","number":191,"state":"open","locked":false,"title":"[WIP] elixir TIL post","user":{"login":"niklaslong","id":13221615,"node_id":"MDQ6VXNlcjEzMjIxNjE1","avatar_url":"https://avatars0.githubusercontent.com/u/13221615?v=4","gravatar_id":"","url":"https://api.github.com/users/niklaslong","html_url":"https://github.com/niklaslong","followers_url":"https://api.github.com/users/niklaslong/followers","following_url":"https://api.github.com/users/niklaslong/following{/other_user}","gists_url":"https://api.github.com/users/niklaslong/gists{/gist_id}","starred_url":"https://api.github.com/users/niklaslong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklaslong/subscriptions","organizations_url":"https://api.github.com/users/niklaslong/orgs","repos_url":"https://api.github.com/users/niklaslong/repos","events_url":"https://api.github.com/users/niklaslong/events{/privacy}","received_events_url":"https://api.github.com/users/niklaslong/received_events","type":"User","site_admin":false},"body":"This is a first quick and dirty draft of the Elixir TIL post. I still have to flesh out the explanations and examples. \r\n\r\nI was thinking I could add a whole bunch of these and we could make a selection of the most useful. Also I didn't write these in any specific order. \r\n\r\nLet me know if you think of anything that would be worth adding here as well!","created_at":"2018-04-17T15:17:15Z","updated_at":"2018-08-23T19:38:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afa3c01e915a9ce54a1a3b0d05db0fdd4e80ecf2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"oliverbarnes","id":21290,"node_id":"MDQ6VXNlcjIxMjkw","avatar_url":"https://avatars3.githubusercontent.com/u/21290?v=4","gravatar_id":"","url":"https://api.github.com/users/oliverbarnes","html_url":"https://github.com/oliverbarnes","followers_url":"https://api.github.com/users/oliverbarnes/followers","following_url":"https://api.github.com/users/oliverbarnes/following{/other_user}","gists_url":"https://api.github.com/users/oliverbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverbarnes/subscriptions","organizations_url":"https://api.github.com/users/oliverbarnes/orgs","repos_url":"https://api.github.com/users/oliverbarnes/repos","events_url":"https://api.github.com/users/oliverbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/oliverbarnes/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":336126252,"node_id":"MDU6TGFiZWwzMzYxMjYyNTI=","url":"https://api.github.com/repos/simplabs/simplabs.github.io/labels/blog%20post","name":"blog post","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191/commits","review_comments_url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191/comments","review_comment_url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simplabs/simplabs.github.io/issues/191/comments","statuses_url":"https://api.github.com/repos/simplabs/simplabs.github.io/statuses/7323a3518fd7d5554ed25f01f64b8bea8cad832e","head":{"label":"niklaslong:til-post","ref":"til-post","sha":"7323a3518fd7d5554ed25f01f64b8bea8cad832e","user":{"login":"niklaslong","id":13221615,"node_id":"MDQ6VXNlcjEzMjIxNjE1","avatar_url":"https://avatars0.githubusercontent.com/u/13221615?v=4","gravatar_id":"","url":"https://api.github.com/users/niklaslong","html_url":"https://github.com/niklaslong","followers_url":"https://api.github.com/users/niklaslong/followers","following_url":"https://api.github.com/users/niklaslong/following{/other_user}","gists_url":"https://api.github.com/users/niklaslong/gists{/gist_id}","starred_url":"https://api.github.com/users/niklaslong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklaslong/subscriptions","organizations_url":"https://api.github.com/users/niklaslong/orgs","repos_url":"https://api.github.com/users/niklaslong/repos","events_url":"https://api.github.com/users/niklaslong/events{/privacy}","received_events_url":"https://api.github.com/users/niklaslong/received_events","type":"User","site_admin":false},"repo":{"id":111823467,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE4MjM0Njc=","name":"simplabs.github.io","full_name":"niklaslong/simplabs.github.io","owner":{"login":"niklaslong","id":13221615,"node_id":"MDQ6VXNlcjEzMjIxNjE1","avatar_url":"https://avatars0.githubusercontent.com/u/13221615?v=4","gravatar_id":"","url":"https://api.github.com/users/niklaslong","html_url":"https://github.com/niklaslong","followers_url":"https://api.github.com/users/niklaslong/followers","following_url":"https://api.github.com/users/niklaslong/following{/other_user}","gists_url":"https://api.github.com/users/niklaslong/gists{/gist_id}","starred_url":"https://api.github.com/users/niklaslong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklaslong/subscriptions","organizations_url":"https://api.github.com/users/niklaslong/orgs","repos_url":"https://api.github.com/users/niklaslong/repos","events_url":"https://api.github.com/users/niklaslong/events{/privacy}","received_events_url":"https://api.github.com/users/niklaslong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niklaslong/simplabs.github.io","description":"The source code for http://simplabs.com","fork":true,"url":"https://api.github.com/repos/niklaslong/simplabs.github.io","forks_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/forks","keys_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/teams","hooks_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/hooks","issue_events_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/events","assignees_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/tags","blobs_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/languages","stargazers_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/stargazers","contributors_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/contributors","subscribers_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/subscribers","subscription_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/subscription","commits_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/merges","archive_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/downloads","issues_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/labels{/name}","releases_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/niklaslong/simplabs.github.io/deployments","created_at":"2017-11-23T15:12:44Z","updated_at":"2018-06-25T13:56:29Z","pushed_at":"2018-08-20T14:37:25Z","git_url":"git://github.com/niklaslong/simplabs.github.io.git","ssh_url":"git@github.com:niklaslong/simplabs.github.io.git","clone_url":"https://github.com/niklaslong/simplabs.github.io.git","svn_url":"https://github.com/niklaslong/simplabs.github.io","homepage":"","size":14345,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"simplabs:master","ref":"master","sha":"3a2bbeca62115decc0a9bc56c9e10b43f6191570","user":{"login":"simplabs","id":56627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NjI3","avatar_url":"https://avatars3.githubusercontent.com/u/56627?v=4","gravatar_id":"","url":"https://api.github.com/users/simplabs","html_url":"https://github.com/simplabs","followers_url":"https://api.github.com/users/simplabs/followers","following_url":"https://api.github.com/users/simplabs/following{/other_user}","gists_url":"https://api.github.com/users/simplabs/gists{/gist_id}","starred_url":"https://api.github.com/users/simplabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplabs/subscriptions","organizations_url":"https://api.github.com/users/simplabs/orgs","repos_url":"https://api.github.com/users/simplabs/repos","events_url":"https://api.github.com/users/simplabs/events{/privacy}","received_events_url":"https://api.github.com/users/simplabs/received_events","type":"Organization","site_admin":false},"repo":{"id":10031701,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAzMTcwMQ==","name":"simplabs.github.io","full_name":"simplabs/simplabs.github.io","owner":{"login":"simplabs","id":56627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NjI3","avatar_url":"https://avatars3.githubusercontent.com/u/56627?v=4","gravatar_id":"","url":"https://api.github.com/users/simplabs","html_url":"https://github.com/simplabs","followers_url":"https://api.github.com/users/simplabs/followers","following_url":"https://api.github.com/users/simplabs/following{/other_user}","gists_url":"https://api.github.com/users/simplabs/gists{/gist_id}","starred_url":"https://api.github.com/users/simplabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplabs/subscriptions","organizations_url":"https://api.github.com/users/simplabs/orgs","repos_url":"https://api.github.com/users/simplabs/repos","events_url":"https://api.github.com/users/simplabs/events{/privacy}","received_events_url":"https://api.github.com/users/simplabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simplabs/simplabs.github.io","description":"The source code for http://simplabs.com","fork":false,"url":"https://api.github.com/repos/simplabs/simplabs.github.io","forks_url":"https://api.github.com/repos/simplabs/simplabs.github.io/forks","keys_url":"https://api.github.com/repos/simplabs/simplabs.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simplabs/simplabs.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simplabs/simplabs.github.io/teams","hooks_url":"https://api.github.com/repos/simplabs/simplabs.github.io/hooks","issue_events_url":"https://api.github.com/repos/simplabs/simplabs.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/simplabs/simplabs.github.io/events","assignees_url":"https://api.github.com/repos/simplabs/simplabs.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/simplabs/simplabs.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/simplabs/simplabs.github.io/tags","blobs_url":"https://api.github.com/repos/simplabs/simplabs.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simplabs/simplabs.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simplabs/simplabs.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/simplabs/simplabs.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simplabs/simplabs.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/simplabs/simplabs.github.io/languages","stargazers_url":"https://api.github.com/repos/simplabs/simplabs.github.io/stargazers","contributors_url":"https://api.github.com/repos/simplabs/simplabs.github.io/contributors","subscribers_url":"https://api.github.com/repos/simplabs/simplabs.github.io/subscribers","subscription_url":"https://api.github.com/repos/simplabs/simplabs.github.io/subscription","commits_url":"https://api.github.com/repos/simplabs/simplabs.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/simplabs/simplabs.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/simplabs/simplabs.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/simplabs/simplabs.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/simplabs/simplabs.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/simplabs/simplabs.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simplabs/simplabs.github.io/merges","archive_url":"https://api.github.com/repos/simplabs/simplabs.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simplabs/simplabs.github.io/downloads","issues_url":"https://api.github.com/repos/simplabs/simplabs.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/simplabs/simplabs.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/simplabs/simplabs.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simplabs/simplabs.github.io/labels{/name}","releases_url":"https://api.github.com/repos/simplabs/simplabs.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/simplabs/simplabs.github.io/deployments","created_at":"2013-05-13T12:59:23Z","updated_at":"2018-08-20T15:24:16Z","pushed_at":"2018-08-23T13:27:52Z","git_url":"git://github.com/simplabs/simplabs.github.io.git","ssh_url":"git@github.com:simplabs/simplabs.github.io.git","clone_url":"https://github.com/simplabs/simplabs.github.io.git","svn_url":"https://github.com/simplabs/simplabs.github.io","homepage":"","size":54114,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":5,"open_issues":16,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191"},"html":{"href":"https://github.com/simplabs/simplabs.github.io/pull/191"},"issue":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/issues/191"},"comments":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/simplabs/simplabs.github.io/statuses/7323a3518fd7d5554ed25f01f64b8bea8cad832e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"marcoow"}}