{"action":"created","comment":{"url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/comments/24367442","id":24367442,"diff_hunk":"@@ -0,0 +1,46 @@\n+# Zadanie 5\n+\n+Czyszczenie konsoli\n+\n+## Opis:\n+\n+Nasz gra strasznie śmieci w terminalu, ale możemy to zmienić. Za każdym razem gdy będziemy rozpoczynać nową rozgrywkę chcemy mieć pusty ekran z powitaniem.\n+Możemy wykorzystać do tego moduł `os` i jego funkcję `system` by wywołać polecenie systemowe `cls` (dla linuxa i macosx `clear`).\n+\n+Przykład:\n+```python\n+import os\n+\n+os.system('cls')","path":"sesje/2015-02-11/script5.md","position":14,"original_position":14,"commit_id":"c7adc95ac04d7260ba7b89ab107082b3ea4bb69c","original_commit_id":"c7adc95ac04d7260ba7b89ab107082b3ea4bb69c","user":{"login":"soutys","id":2017999,"avatar_url":"https://avatars.githubusercontent.com/u/2017999?v=3","gravatar_id":"","url":"https://api.github.com/users/soutys","html_url":"https://github.com/soutys","followers_url":"https://api.github.com/users/soutys/followers","following_url":"https://api.github.com/users/soutys/following{/other_user}","gists_url":"https://api.github.com/users/soutys/gists{/gist_id}","starred_url":"https://api.github.com/users/soutys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soutys/subscriptions","organizations_url":"https://api.github.com/users/soutys/orgs","repos_url":"https://api.github.com/users/soutys/repos","events_url":"https://api.github.com/users/soutys/events{/privacy}","received_events_url":"https://api.github.com/users/soutys/received_events","type":"User","site_admin":false},"body":"Trick z przewinięciem bufora okna zadziała tylko w konsoli. Na *nixach zadziała trochę inaczej niż w windowsowym CLI a w IDLE zrobi po prostu \"nic\" :)","created_at":"2015-02-09T21:33:35Z","updated_at":"2015-02-09T21:33:35Z","html_url":"https://github.com/CodeCarrots/warsztaty_2015/pull/1#discussion_r24367442","pull_request_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/comments/24367442"},"html":{"href":"https://github.com/CodeCarrots/warsztaty_2015/pull/1#discussion_r24367442"},"pull_request":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1","id":28885854,"html_url":"https://github.com/CodeCarrots/warsztaty_2015/pull/1","diff_url":"https://github.com/CodeCarrots/warsztaty_2015/pull/1.diff","patch_url":"https://github.com/CodeCarrots/warsztaty_2015/pull/1.patch","issue_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/1","number":1,"state":"open","locked":false,"title":"Initial session 2015.02.11 files + mentor script","user":{"login":"gkapkowski","id":114996,"avatar_url":"https://avatars.githubusercontent.com/u/114996?v=3","gravatar_id":"","url":"https://api.github.com/users/gkapkowski","html_url":"https://github.com/gkapkowski","followers_url":"https://api.github.com/users/gkapkowski/followers","following_url":"https://api.github.com/users/gkapkowski/following{/other_user}","gists_url":"https://api.github.com/users/gkapkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/gkapkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkapkowski/subscriptions","organizations_url":"https://api.github.com/users/gkapkowski/orgs","repos_url":"https://api.github.com/users/gkapkowski/repos","events_url":"https://api.github.com/users/gkapkowski/events{/privacy}","received_events_url":"https://api.github.com/users/gkapkowski/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-08T20:17:55Z","updated_at":"2015-02-09T21:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"314d6b989a74f6a286dfbf72c3b843b47d0a11f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1/commits","review_comments_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1/comments","review_comment_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/1/comments","statuses_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/statuses/c7adc95ac04d7260ba7b89ab107082b3ea4bb69c","head":{"label":"CodeCarrots:session-2015-02-11","ref":"session-2015-02-11","sha":"c7adc95ac04d7260ba7b89ab107082b3ea4bb69c","user":{"login":"CodeCarrots","id":9392651,"avatar_url":"https://avatars.githubusercontent.com/u/9392651?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCarrots","html_url":"https://github.com/CodeCarrots","followers_url":"https://api.github.com/users/CodeCarrots/followers","following_url":"https://api.github.com/users/CodeCarrots/following{/other_user}","gists_url":"https://api.github.com/users/CodeCarrots/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCarrots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCarrots/subscriptions","organizations_url":"https://api.github.com/users/CodeCarrots/orgs","repos_url":"https://api.github.com/users/CodeCarrots/repos","events_url":"https://api.github.com/users/CodeCarrots/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCarrots/received_events","type":"Organization","site_admin":false},"repo":{"id":29619398,"name":"warsztaty_2015","full_name":"CodeCarrots/warsztaty_2015","owner":{"login":"CodeCarrots","id":9392651,"avatar_url":"https://avatars.githubusercontent.com/u/9392651?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCarrots","html_url":"https://github.com/CodeCarrots","followers_url":"https://api.github.com/users/CodeCarrots/followers","following_url":"https://api.github.com/users/CodeCarrots/following{/other_user}","gists_url":"https://api.github.com/users/CodeCarrots/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCarrots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCarrots/subscriptions","organizations_url":"https://api.github.com/users/CodeCarrots/orgs","repos_url":"https://api.github.com/users/CodeCarrots/repos","events_url":"https://api.github.com/users/CodeCarrots/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCarrots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCarrots/warsztaty_2015","description":"Code Carrots Warszawa - materiały na spotkania warsztatowe i materiały ze spotkań","fork":false,"url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015","forks_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/forks","keys_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/teams","hooks_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/hooks","issue_events_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/events","assignees_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/tags","blobs_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/languages","stargazers_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/stargazers","contributors_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/contributors","subscribers_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/subscribers","subscription_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/subscription","commits_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/comments/{number}","contents_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/merges","archive_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/downloads","issues_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/labels{/name}","releases_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/releases{/id}","created_at":"2015-01-21T21:55:12Z","updated_at":"2015-02-02T19:57:45Z","pushed_at":"2015-02-09T05:57:35Z","git_url":"git://github.com/CodeCarrots/warsztaty_2015.git","ssh_url":"git@github.com:CodeCarrots/warsztaty_2015.git","clone_url":"https://github.com/CodeCarrots/warsztaty_2015.git","svn_url":"https://github.com/CodeCarrots/warsztaty_2015","homepage":"http://geekgirlscarrots.pl/pogotowie-programistyczne/","size":252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CodeCarrots:master","ref":"master","sha":"86f47fc54bf82c41dfe5419a12f9ed8837c3bf70","user":{"login":"CodeCarrots","id":9392651,"avatar_url":"https://avatars.githubusercontent.com/u/9392651?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCarrots","html_url":"https://github.com/CodeCarrots","followers_url":"https://api.github.com/users/CodeCarrots/followers","following_url":"https://api.github.com/users/CodeCarrots/following{/other_user}","gists_url":"https://api.github.com/users/CodeCarrots/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCarrots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCarrots/subscriptions","organizations_url":"https://api.github.com/users/CodeCarrots/orgs","repos_url":"https://api.github.com/users/CodeCarrots/repos","events_url":"https://api.github.com/users/CodeCarrots/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCarrots/received_events","type":"Organization","site_admin":false},"repo":{"id":29619398,"name":"warsztaty_2015","full_name":"CodeCarrots/warsztaty_2015","owner":{"login":"CodeCarrots","id":9392651,"avatar_url":"https://avatars.githubusercontent.com/u/9392651?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCarrots","html_url":"https://github.com/CodeCarrots","followers_url":"https://api.github.com/users/CodeCarrots/followers","following_url":"https://api.github.com/users/CodeCarrots/following{/other_user}","gists_url":"https://api.github.com/users/CodeCarrots/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCarrots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCarrots/subscriptions","organizations_url":"https://api.github.com/users/CodeCarrots/orgs","repos_url":"https://api.github.com/users/CodeCarrots/repos","events_url":"https://api.github.com/users/CodeCarrots/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCarrots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCarrots/warsztaty_2015","description":"Code Carrots Warszawa - materiały na spotkania warsztatowe i materiały ze spotkań","fork":false,"url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015","forks_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/forks","keys_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/teams","hooks_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/hooks","issue_events_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/events","assignees_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/tags","blobs_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/languages","stargazers_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/stargazers","contributors_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/contributors","subscribers_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/subscribers","subscription_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/subscription","commits_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/comments/{number}","contents_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/merges","archive_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/downloads","issues_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/labels{/name}","releases_url":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/releases{/id}","created_at":"2015-01-21T21:55:12Z","updated_at":"2015-02-02T19:57:45Z","pushed_at":"2015-02-09T05:57:35Z","git_url":"git://github.com/CodeCarrots/warsztaty_2015.git","ssh_url":"git@github.com:CodeCarrots/warsztaty_2015.git","clone_url":"https://github.com/CodeCarrots/warsztaty_2015.git","svn_url":"https://github.com/CodeCarrots/warsztaty_2015","homepage":"http://geekgirlscarrots.pl/pogotowie-programistyczne/","size":252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"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/CodeCarrots/warsztaty_2015/pulls/1"},"html":{"href":"https://github.com/CodeCarrots/warsztaty_2015/pull/1"},"issue":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/1"},"comments":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/CodeCarrots/warsztaty_2015/statuses/c7adc95ac04d7260ba7b89ab107082b3ea4bb69c"}}}}