{"action":"created","comment":{"url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/comments/240012820","pull_request_review_id":182952903,"id":240012820,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDAxMjgyMA==","diff_hunk":"@@ -0,0 +1,213 @@\n+/*\n+ * =====================================================================================\n+ *\n+ *       Filename:  reqs.cpp\n+ *\n+ *    Description:  The pre-requisites for running the main.cpp.\n+ *\n+ *        Version:  1.0\n+ *        Created:  Saturday, 08 December, 2018 02:31:38  PST\n+ *       Revision:  none\n+ *       Compiler:  gcc\n+ *\n+ *         Author:  YOUR NAME (), \n+ *   Organization:  \n+ *\n+ * =====================================================================================\n+ */\n+\n+#include <iostream>\n+#include <signal.h>\n+using namespace std;\n+\n+\n+int snoozeTrue = 1;\n+int snoozeFalse = 0;\n+char volChoice;\n+\n+\n+char getch()\t// For getch in linux\n+{\n+\t    char buf=0;\n+\t    struct termios old={0};\n+\t    fflush(stdout);\n+\t    if(tcgetattr(0, &old)<0)\n+\t\tperror(\"tcsetattr()\");\n+\t    old.c_lflag&=~ICANON;\n+\t    old.c_lflag&=~ECHO;\n+\t    old.c_cc[VMIN]=1;\n+\t    old.c_cc[VTIME]=0;\n+\t    if(tcsetattr(0, TCSANOW, &old)<0)\n+\t\tperror(\"tcsetattr ICANON\");\n+\t    if(read(0,&buf,1)<0)\n+\t\tperror(\"read()\");\n+\t    old.c_lflag|=ICANON;\n+\t    old.c_lflag|=ECHO;\n+\t    if(tcsetattr(0, TCSADRAIN, &old)<0)\n+\t\tperror (\"tcsetattr ~ICANON\");\n+\t    printf(\"%c\\n\",buf);\n+\t    return buf;\n+}\n+\n+\n+\n+// Functions listing\n+\n+void alarmPlayer(int active);\n+\n+\n+\n+void quithandler(int sig)\t// CTRL-C handler\n+{\n+\tcout << \"Ctrl-C is not allowed.\";\n+\treturn;\n+}\n+\n+\n+void forewarn()\t\t// Program warning before launch\n+{\n+\tcout << \"\\e[1m\" << \"\\n\\n\\nRUN THIS SCRIPT AS ROOT!\" << \"\\e[0m\"\n+\t\t<< \"\\n\\nAlso make sure that your volume is not muted, as it disables the PulseAudio-server.\" << endl\n+\t\t<< \"Press any key to continue.\";\n+\tgetch();\n+\treturn;\n+}\n+\n+void splashScreen()\n+{\n+\tsystem(\"clear\");\n+\n+\t\t\n+\tfor(int loadingTime = 1; loadingTime < 7; loadingTime++){\n+\t\tcout << \"+=========================================================================+\" << endl\n+\t\t<<\t\"||\t\t\t\t\t\t\t\t\t ||\" << endl\n+\t\t<<\t\"||\t      Alarm on Terminal. Written and made by mikaeruu.\t\t ||\" << endl\n+\t\t<<\t\"||\t\t\t\t\t\t\t\t\t ||\" << endl\n+\t\t<<\t\"+=========================================================================+\" << endl;\n+\t\n+\t\tcout << endl << endl << endl << endl;\n+\t\tswitch(loadingTime)\n+\t\t{\n+\t\t\tcase 1:\tcout << \"Loading.\" << endl; break;","path":"reqs.cpp","position":91,"original_position":91,"commit_id":"1dbae52fb003407377b43c59c65c8091ab6d3e0a","original_commit_id":"1dbae52fb003407377b43c59c65c8091ab6d3e0a","user":{"login":"Shahab96","id":826895,"node_id":"MDQ6VXNlcjgyNjg5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/826895?v=4","gravatar_id":"","url":"https://api.github.com/users/Shahab96","html_url":"https://github.com/Shahab96","followers_url":"https://api.github.com/users/Shahab96/followers","following_url":"https://api.github.com/users/Shahab96/following{/other_user}","gists_url":"https://api.github.com/users/Shahab96/gists{/gist_id}","starred_url":"https://api.github.com/users/Shahab96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shahab96/subscriptions","organizations_url":"https://api.github.com/users/Shahab96/orgs","repos_url":"https://api.github.com/users/Shahab96/repos","events_url":"https://api.github.com/users/Shahab96/events{/privacy}","received_events_url":"https://api.github.com/users/Shahab96/received_events","type":"User","site_admin":false},"body":"Case 1 and 4, 2 and 5, and 3 and 6 can all be put one after the other.\r\n\r\n```\r\ncase 1:\r\ncase 4:\r\n Code\r\n  break;\r\n```","created_at":"2018-12-08T18:39:37Z","updated_at":"2018-12-08T18:49:05Z","html_url":"https://github.com/mikaeruu/wakeee-up/pull/1#discussion_r240012820","pull_request_url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/comments/240012820"},"html":{"href":"https://github.com/mikaeruu/wakeee-up/pull/1#discussion_r240012820"},"pull_request":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1","id":237053923,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MDUzOTIz","html_url":"https://github.com/mikaeruu/wakeee-up/pull/1","diff_url":"https://github.com/mikaeruu/wakeee-up/pull/1.diff","patch_url":"https://github.com/mikaeruu/wakeee-up/pull/1.patch","issue_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/1","number":1,"state":"open","locked":false,"title":"Add files via upload","user":{"login":"mikaeruu","id":38761319,"node_id":"MDQ6VXNlcjM4NzYxMzE5","avatar_url":"https://avatars1.githubusercontent.com/u/38761319?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaeruu","html_url":"https://github.com/mikaeruu","followers_url":"https://api.github.com/users/mikaeruu/followers","following_url":"https://api.github.com/users/mikaeruu/following{/other_user}","gists_url":"https://api.github.com/users/mikaeruu/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaeruu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaeruu/subscriptions","organizations_url":"https://api.github.com/users/mikaeruu/orgs","repos_url":"https://api.github.com/users/mikaeruu/repos","events_url":"https://api.github.com/users/mikaeruu/events{/privacy}","received_events_url":"https://api.github.com/users/mikaeruu/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-08T08:02:15Z","updated_at":"2018-12-08T18:49:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2dd9c7197d5365a185cb931a7dbacacf571d47ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/1/comments","statuses_url":"https://api.github.com/repos/mikaeruu/wakeee-up/statuses/1dbae52fb003407377b43c59c65c8091ab6d3e0a","head":{"label":"mikaeruu:ver2","ref":"ver2","sha":"1dbae52fb003407377b43c59c65c8091ab6d3e0a","user":{"login":"mikaeruu","id":38761319,"node_id":"MDQ6VXNlcjM4NzYxMzE5","avatar_url":"https://avatars1.githubusercontent.com/u/38761319?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaeruu","html_url":"https://github.com/mikaeruu","followers_url":"https://api.github.com/users/mikaeruu/followers","following_url":"https://api.github.com/users/mikaeruu/following{/other_user}","gists_url":"https://api.github.com/users/mikaeruu/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaeruu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaeruu/subscriptions","organizations_url":"https://api.github.com/users/mikaeruu/orgs","repos_url":"https://api.github.com/users/mikaeruu/repos","events_url":"https://api.github.com/users/mikaeruu/events{/privacy}","received_events_url":"https://api.github.com/users/mikaeruu/received_events","type":"User","site_admin":false},"repo":{"id":160528701,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA1Mjg3MDE=","name":"wakeee-up","full_name":"mikaeruu/wakeee-up","private":false,"owner":{"login":"mikaeruu","id":38761319,"node_id":"MDQ6VXNlcjM4NzYxMzE5","avatar_url":"https://avatars1.githubusercontent.com/u/38761319?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaeruu","html_url":"https://github.com/mikaeruu","followers_url":"https://api.github.com/users/mikaeruu/followers","following_url":"https://api.github.com/users/mikaeruu/following{/other_user}","gists_url":"https://api.github.com/users/mikaeruu/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaeruu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaeruu/subscriptions","organizations_url":"https://api.github.com/users/mikaeruu/orgs","repos_url":"https://api.github.com/users/mikaeruu/repos","events_url":"https://api.github.com/users/mikaeruu/events{/privacy}","received_events_url":"https://api.github.com/users/mikaeruu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mikaeruu/wakeee-up","description":"Wakeee Up is a terminal app for Linux that can wake everything up, including your Linux laptop or desktop.","fork":false,"url":"https://api.github.com/repos/mikaeruu/wakeee-up","forks_url":"https://api.github.com/repos/mikaeruu/wakeee-up/forks","keys_url":"https://api.github.com/repos/mikaeruu/wakeee-up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikaeruu/wakeee-up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikaeruu/wakeee-up/teams","hooks_url":"https://api.github.com/repos/mikaeruu/wakeee-up/hooks","issue_events_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/events{/number}","events_url":"https://api.github.com/repos/mikaeruu/wakeee-up/events","assignees_url":"https://api.github.com/repos/mikaeruu/wakeee-up/assignees{/user}","branches_url":"https://api.github.com/repos/mikaeruu/wakeee-up/branches{/branch}","tags_url":"https://api.github.com/repos/mikaeruu/wakeee-up/tags","blobs_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikaeruu/wakeee-up/statuses/{sha}","languages_url":"https://api.github.com/repos/mikaeruu/wakeee-up/languages","stargazers_url":"https://api.github.com/repos/mikaeruu/wakeee-up/stargazers","contributors_url":"https://api.github.com/repos/mikaeruu/wakeee-up/contributors","subscribers_url":"https://api.github.com/repos/mikaeruu/wakeee-up/subscribers","subscription_url":"https://api.github.com/repos/mikaeruu/wakeee-up/subscription","commits_url":"https://api.github.com/repos/mikaeruu/wakeee-up/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikaeruu/wakeee-up/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikaeruu/wakeee-up/contents/{+path}","compare_url":"https://api.github.com/repos/mikaeruu/wakeee-up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikaeruu/wakeee-up/merges","archive_url":"https://api.github.com/repos/mikaeruu/wakeee-up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikaeruu/wakeee-up/downloads","issues_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues{/number}","pulls_url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls{/number}","milestones_url":"https://api.github.com/repos/mikaeruu/wakeee-up/milestones{/number}","notifications_url":"https://api.github.com/repos/mikaeruu/wakeee-up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikaeruu/wakeee-up/labels{/name}","releases_url":"https://api.github.com/repos/mikaeruu/wakeee-up/releases{/id}","deployments_url":"https://api.github.com/repos/mikaeruu/wakeee-up/deployments","created_at":"2018-12-05T14:15:53Z","updated_at":"2018-12-08T17:56:29Z","pushed_at":"2018-12-08T14:48:37Z","git_url":"git://github.com/mikaeruu/wakeee-up.git","ssh_url":"git@github.com:mikaeruu/wakeee-up.git","clone_url":"https://github.com/mikaeruu/wakeee-up.git","svn_url":"https://github.com/mikaeruu/wakeee-up","homepage":null,"size":28,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"mikaeruu:ver1","ref":"ver1","sha":"38b9769ade7d5397090edfb9f2eaf4a464e13421","user":{"login":"mikaeruu","id":38761319,"node_id":"MDQ6VXNlcjM4NzYxMzE5","avatar_url":"https://avatars1.githubusercontent.com/u/38761319?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaeruu","html_url":"https://github.com/mikaeruu","followers_url":"https://api.github.com/users/mikaeruu/followers","following_url":"https://api.github.com/users/mikaeruu/following{/other_user}","gists_url":"https://api.github.com/users/mikaeruu/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaeruu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaeruu/subscriptions","organizations_url":"https://api.github.com/users/mikaeruu/orgs","repos_url":"https://api.github.com/users/mikaeruu/repos","events_url":"https://api.github.com/users/mikaeruu/events{/privacy}","received_events_url":"https://api.github.com/users/mikaeruu/received_events","type":"User","site_admin":false},"repo":{"id":160528701,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA1Mjg3MDE=","name":"wakeee-up","full_name":"mikaeruu/wakeee-up","private":false,"owner":{"login":"mikaeruu","id":38761319,"node_id":"MDQ6VXNlcjM4NzYxMzE5","avatar_url":"https://avatars1.githubusercontent.com/u/38761319?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaeruu","html_url":"https://github.com/mikaeruu","followers_url":"https://api.github.com/users/mikaeruu/followers","following_url":"https://api.github.com/users/mikaeruu/following{/other_user}","gists_url":"https://api.github.com/users/mikaeruu/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaeruu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaeruu/subscriptions","organizations_url":"https://api.github.com/users/mikaeruu/orgs","repos_url":"https://api.github.com/users/mikaeruu/repos","events_url":"https://api.github.com/users/mikaeruu/events{/privacy}","received_events_url":"https://api.github.com/users/mikaeruu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mikaeruu/wakeee-up","description":"Wakeee Up is a terminal app for Linux that can wake everything up, including your Linux laptop or desktop.","fork":false,"url":"https://api.github.com/repos/mikaeruu/wakeee-up","forks_url":"https://api.github.com/repos/mikaeruu/wakeee-up/forks","keys_url":"https://api.github.com/repos/mikaeruu/wakeee-up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikaeruu/wakeee-up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikaeruu/wakeee-up/teams","hooks_url":"https://api.github.com/repos/mikaeruu/wakeee-up/hooks","issue_events_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/events{/number}","events_url":"https://api.github.com/repos/mikaeruu/wakeee-up/events","assignees_url":"https://api.github.com/repos/mikaeruu/wakeee-up/assignees{/user}","branches_url":"https://api.github.com/repos/mikaeruu/wakeee-up/branches{/branch}","tags_url":"https://api.github.com/repos/mikaeruu/wakeee-up/tags","blobs_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikaeruu/wakeee-up/statuses/{sha}","languages_url":"https://api.github.com/repos/mikaeruu/wakeee-up/languages","stargazers_url":"https://api.github.com/repos/mikaeruu/wakeee-up/stargazers","contributors_url":"https://api.github.com/repos/mikaeruu/wakeee-up/contributors","subscribers_url":"https://api.github.com/repos/mikaeruu/wakeee-up/subscribers","subscription_url":"https://api.github.com/repos/mikaeruu/wakeee-up/subscription","commits_url":"https://api.github.com/repos/mikaeruu/wakeee-up/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikaeruu/wakeee-up/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikaeruu/wakeee-up/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikaeruu/wakeee-up/contents/{+path}","compare_url":"https://api.github.com/repos/mikaeruu/wakeee-up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikaeruu/wakeee-up/merges","archive_url":"https://api.github.com/repos/mikaeruu/wakeee-up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikaeruu/wakeee-up/downloads","issues_url":"https://api.github.com/repos/mikaeruu/wakeee-up/issues{/number}","pulls_url":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls{/number}","milestones_url":"https://api.github.com/repos/mikaeruu/wakeee-up/milestones{/number}","notifications_url":"https://api.github.com/repos/mikaeruu/wakeee-up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikaeruu/wakeee-up/labels{/name}","releases_url":"https://api.github.com/repos/mikaeruu/wakeee-up/releases{/id}","deployments_url":"https://api.github.com/repos/mikaeruu/wakeee-up/deployments","created_at":"2018-12-05T14:15:53Z","updated_at":"2018-12-08T17:56:29Z","pushed_at":"2018-12-08T14:48:37Z","git_url":"git://github.com/mikaeruu/wakeee-up.git","ssh_url":"git@github.com:mikaeruu/wakeee-up.git","clone_url":"https://github.com/mikaeruu/wakeee-up.git","svn_url":"https://github.com/mikaeruu/wakeee-up","homepage":null,"size":28,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1"},"html":{"href":"https://github.com/mikaeruu/wakeee-up/pull/1"},"issue":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/1"},"comments":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mikaeruu/wakeee-up/statuses/1dbae52fb003407377b43c59c65c8091ab6d3e0a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Shahab96"}}