{"action":"created","comment":{"url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/comments/84285528","pull_request_review_id":5071824,"id":84285528,"diff_hunk":"@@ -0,0 +1,51 @@\n+#!/usr/bin/env python3\n+\n+import datetime\n+\n+\n+def main():\n+    print_header()\n+\n+    today = datetime.date.today()\n+    date_this_year = get_date_from_user(today)\n+    days = compute_days(date_this_year, today)\n+\n+    print_conclusion(days)\n+\n+\n+def print_header():\n+    print('------------------')\n+    print('   COMPUTE DAYS')\n+    print('------------------\\n')\n+\n+\n+def get_date_from_user(today):\n+    print('When is the date?')\n+    month = int(input('Month [MM]: '))\n+    day = int(input('Day [DD]: '))\n+\n+    return datetime.date(today.year, month, day)\n+\n+\n+def compute_days(date_this_year, today):\n+    time_gap = date_this_year - today\n+    days = time_gap.days\n+    # == 0 if birthday is today, > 0 if birthday is still to come this year","path":"apps/02_compute_days/program.py","position":33,"original_position":33,"commit_id":"7ac87f61b0f90b24695265aa273620a973c43e78","original_commit_id":"7ac87f61b0f90b24695265aa273620a973c43e78","user":{"login":"Nairwolf","id":19313639,"avatar_url":"https://avatars.githubusercontent.com/u/19313639?v=3","gravatar_id":"","url":"https://api.github.com/users/Nairwolf","html_url":"https://github.com/Nairwolf","followers_url":"https://api.github.com/users/Nairwolf/followers","following_url":"https://api.github.com/users/Nairwolf/following{/other_user}","gists_url":"https://api.github.com/users/Nairwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/Nairwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nairwolf/subscriptions","organizations_url":"https://api.github.com/users/Nairwolf/orgs","repos_url":"https://api.github.com/users/Nairwolf/repos","events_url":"https://api.github.com/users/Nairwolf/events{/privacy}","received_events_url":"https://api.github.com/users/Nairwolf/received_events","type":"User","site_admin":false},"body":"That's not a `birthday` anymore","created_at":"2016-10-20T13:47:00Z","updated_at":"2016-10-20T13:47:00Z","html_url":"https://github.com/wecodetogethere/appetizers_python/pull/7#discussion_r84285528","pull_request_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/comments/84285528"},"html":{"href":"https://github.com/wecodetogethere/appetizers_python/pull/7#discussion_r84285528"},"pull_request":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7","id":90180193,"html_url":"https://github.com/wecodetogethere/appetizers_python/pull/7","diff_url":"https://github.com/wecodetogethere/appetizers_python/pull/7.diff","patch_url":"https://github.com/wecodetogethere/appetizers_python/pull/7.patch","issue_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/7","number":7,"state":"open","locked":false,"title":"4firstapps","user":{"login":"CharbelGui","id":17703710,"avatar_url":"https://avatars.githubusercontent.com/u/17703710?v=3","gravatar_id":"","url":"https://api.github.com/users/CharbelGui","html_url":"https://github.com/CharbelGui","followers_url":"https://api.github.com/users/CharbelGui/followers","following_url":"https://api.github.com/users/CharbelGui/following{/other_user}","gists_url":"https://api.github.com/users/CharbelGui/gists{/gist_id}","starred_url":"https://api.github.com/users/CharbelGui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharbelGui/subscriptions","organizations_url":"https://api.github.com/users/CharbelGui/orgs","repos_url":"https://api.github.com/users/CharbelGui/repos","events_url":"https://api.github.com/users/CharbelGui/events{/privacy}","received_events_url":"https://api.github.com/users/CharbelGui/received_events","type":"User","site_admin":false},"body":"hello @Nairwolf :) please review this PR\r\n\r\nThe philosophy behind it: do apps that **really matter**\r\n\r\n1. impress your friends with your first program, able to interact with them\r\n2. compute days before any date\r\n3. make an algorithm and try to beat it\r\n4. create and safely store strong passwords for your accounts\r\n\r\nThis implied to: \r\n\r\n- rename apps 1..4 (with a swap 2<-->3)\r\n\r\n- redesign them to adapt with the new objectives 1..4\r\n","created_at":"2016-10-20T11:17:50Z","updated_at":"2016-10-20T13:47:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5d8d175ed808ae9cfa4e42b75680ebd539fddb1","assignee":{"login":"Nairwolf","id":19313639,"avatar_url":"https://avatars.githubusercontent.com/u/19313639?v=3","gravatar_id":"","url":"https://api.github.com/users/Nairwolf","html_url":"https://github.com/Nairwolf","followers_url":"https://api.github.com/users/Nairwolf/followers","following_url":"https://api.github.com/users/Nairwolf/following{/other_user}","gists_url":"https://api.github.com/users/Nairwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/Nairwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nairwolf/subscriptions","organizations_url":"https://api.github.com/users/Nairwolf/orgs","repos_url":"https://api.github.com/users/Nairwolf/repos","events_url":"https://api.github.com/users/Nairwolf/events{/privacy}","received_events_url":"https://api.github.com/users/Nairwolf/received_events","type":"User","site_admin":false},"assignees":[{"login":"Nairwolf","id":19313639,"avatar_url":"https://avatars.githubusercontent.com/u/19313639?v=3","gravatar_id":"","url":"https://api.github.com/users/Nairwolf","html_url":"https://github.com/Nairwolf","followers_url":"https://api.github.com/users/Nairwolf/followers","following_url":"https://api.github.com/users/Nairwolf/following{/other_user}","gists_url":"https://api.github.com/users/Nairwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/Nairwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nairwolf/subscriptions","organizations_url":"https://api.github.com/users/Nairwolf/orgs","repos_url":"https://api.github.com/users/Nairwolf/repos","events_url":"https://api.github.com/users/Nairwolf/events{/privacy}","received_events_url":"https://api.github.com/users/Nairwolf/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7/commits","review_comments_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7/comments","review_comment_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/7/comments","statuses_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/statuses/7ac87f61b0f90b24695265aa273620a973c43e78","head":{"label":"wecodetogethere:4firstapps","ref":"4firstapps","sha":"7ac87f61b0f90b24695265aa273620a973c43e78","user":{"login":"wecodetogethere","id":22665781,"avatar_url":"https://avatars.githubusercontent.com/u/22665781?v=3","gravatar_id":"","url":"https://api.github.com/users/wecodetogethere","html_url":"https://github.com/wecodetogethere","followers_url":"https://api.github.com/users/wecodetogethere/followers","following_url":"https://api.github.com/users/wecodetogethere/following{/other_user}","gists_url":"https://api.github.com/users/wecodetogethere/gists{/gist_id}","starred_url":"https://api.github.com/users/wecodetogethere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wecodetogethere/subscriptions","organizations_url":"https://api.github.com/users/wecodetogethere/orgs","repos_url":"https://api.github.com/users/wecodetogethere/repos","events_url":"https://api.github.com/users/wecodetogethere/events{/privacy}","received_events_url":"https://api.github.com/users/wecodetogethere/received_events","type":"Organization","site_admin":false},"repo":{"id":70179654,"name":"appetizers_python","full_name":"wecodetogethere/appetizers_python","owner":{"login":"wecodetogethere","id":22665781,"avatar_url":"https://avatars.githubusercontent.com/u/22665781?v=3","gravatar_id":"","url":"https://api.github.com/users/wecodetogethere","html_url":"https://github.com/wecodetogethere","followers_url":"https://api.github.com/users/wecodetogethere/followers","following_url":"https://api.github.com/users/wecodetogethere/following{/other_user}","gists_url":"https://api.github.com/users/wecodetogethere/gists{/gist_id}","starred_url":"https://api.github.com/users/wecodetogethere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wecodetogethere/subscriptions","organizations_url":"https://api.github.com/users/wecodetogethere/orgs","repos_url":"https://api.github.com/users/wecodetogethere/repos","events_url":"https://api.github.com/users/wecodetogethere/events{/privacy}","received_events_url":"https://api.github.com/users/wecodetogethere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wecodetogethere/appetizers_python","description":"Want to start programming? Attracted by python? Here is the place :)","fork":false,"url":"https://api.github.com/repos/wecodetogethere/appetizers_python","forks_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/forks","keys_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/teams","hooks_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/hooks","issue_events_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/events{/number}","events_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/events","assignees_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/assignees{/user}","branches_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/branches{/branch}","tags_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/tags","blobs_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/statuses/{sha}","languages_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/languages","stargazers_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/stargazers","contributors_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/contributors","subscribers_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/subscribers","subscription_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/subscription","commits_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/contents/{+path}","compare_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/merges","archive_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/downloads","issues_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues{/number}","pulls_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls{/number}","milestones_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/milestones{/number}","notifications_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/labels{/name}","releases_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/releases{/id}","deployments_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/deployments","created_at":"2016-10-06T18:04:48Z","updated_at":"2016-10-09T23:55:11Z","pushed_at":"2016-10-20T13:37:00Z","git_url":"git://github.com/wecodetogethere/appetizers_python.git","ssh_url":"git@github.com:wecodetogethere/appetizers_python.git","clone_url":"https://github.com/wecodetogethere/appetizers_python.git","svn_url":"https://github.com/wecodetogethere/appetizers_python","homepage":"","size":9071,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"wecodetogethere:develop","ref":"develop","sha":"5a7d4b8902ca8b0ee20ff4172a2517fa4e651caf","user":{"login":"wecodetogethere","id":22665781,"avatar_url":"https://avatars.githubusercontent.com/u/22665781?v=3","gravatar_id":"","url":"https://api.github.com/users/wecodetogethere","html_url":"https://github.com/wecodetogethere","followers_url":"https://api.github.com/users/wecodetogethere/followers","following_url":"https://api.github.com/users/wecodetogethere/following{/other_user}","gists_url":"https://api.github.com/users/wecodetogethere/gists{/gist_id}","starred_url":"https://api.github.com/users/wecodetogethere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wecodetogethere/subscriptions","organizations_url":"https://api.github.com/users/wecodetogethere/orgs","repos_url":"https://api.github.com/users/wecodetogethere/repos","events_url":"https://api.github.com/users/wecodetogethere/events{/privacy}","received_events_url":"https://api.github.com/users/wecodetogethere/received_events","type":"Organization","site_admin":false},"repo":{"id":70179654,"name":"appetizers_python","full_name":"wecodetogethere/appetizers_python","owner":{"login":"wecodetogethere","id":22665781,"avatar_url":"https://avatars.githubusercontent.com/u/22665781?v=3","gravatar_id":"","url":"https://api.github.com/users/wecodetogethere","html_url":"https://github.com/wecodetogethere","followers_url":"https://api.github.com/users/wecodetogethere/followers","following_url":"https://api.github.com/users/wecodetogethere/following{/other_user}","gists_url":"https://api.github.com/users/wecodetogethere/gists{/gist_id}","starred_url":"https://api.github.com/users/wecodetogethere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wecodetogethere/subscriptions","organizations_url":"https://api.github.com/users/wecodetogethere/orgs","repos_url":"https://api.github.com/users/wecodetogethere/repos","events_url":"https://api.github.com/users/wecodetogethere/events{/privacy}","received_events_url":"https://api.github.com/users/wecodetogethere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wecodetogethere/appetizers_python","description":"Want to start programming? Attracted by python? Here is the place :)","fork":false,"url":"https://api.github.com/repos/wecodetogethere/appetizers_python","forks_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/forks","keys_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/teams","hooks_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/hooks","issue_events_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/events{/number}","events_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/events","assignees_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/assignees{/user}","branches_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/branches{/branch}","tags_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/tags","blobs_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/statuses/{sha}","languages_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/languages","stargazers_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/stargazers","contributors_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/contributors","subscribers_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/subscribers","subscription_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/subscription","commits_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/contents/{+path}","compare_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/merges","archive_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/downloads","issues_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues{/number}","pulls_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls{/number}","milestones_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/milestones{/number}","notifications_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/labels{/name}","releases_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/releases{/id}","deployments_url":"https://api.github.com/repos/wecodetogethere/appetizers_python/deployments","created_at":"2016-10-06T18:04:48Z","updated_at":"2016-10-09T23:55:11Z","pushed_at":"2016-10-20T13:37:00Z","git_url":"git://github.com/wecodetogethere/appetizers_python.git","ssh_url":"git@github.com:wecodetogethere/appetizers_python.git","clone_url":"https://github.com/wecodetogethere/appetizers_python.git","svn_url":"https://github.com/wecodetogethere/appetizers_python","homepage":"","size":9071,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7"},"html":{"href":"https://github.com/wecodetogethere/appetizers_python/pull/7"},"issue":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/7"},"comments":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/wecodetogethere/appetizers_python/statuses/7ac87f61b0f90b24695265aa273620a973c43e78"}}}}
{"actor":{"display_login":"Nairwolf"}}