{"action":"created","issue":{"url":"https://api.github.com/repos/andrewpenland/Summer2018Precise/issues/2","repository_url":"https://api.github.com/repos/andrewpenland/Summer2018Precise","labels_url":"https://api.github.com/repos/andrewpenland/Summer2018Precise/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/andrewpenland/Summer2018Precise/issues/2/comments","events_url":"https://api.github.com/repos/andrewpenland/Summer2018Precise/issues/2/events","html_url":"https://github.com/andrewpenland/Summer2018Precise/issues/2","id":330375856,"node_id":"MDU6SXNzdWUzMzAzNzU4NTY=","number":2,"title":"Rule 30 example","user":{"login":"andrewpenland","id":8846570,"node_id":"MDQ6VXNlcjg4NDY1NzA=","avatar_url":"https://avatars2.githubusercontent.com/u/8846570?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewpenland","html_url":"https://github.com/andrewpenland","followers_url":"https://api.github.com/users/andrewpenland/followers","following_url":"https://api.github.com/users/andrewpenland/following{/other_user}","gists_url":"https://api.github.com/users/andrewpenland/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewpenland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewpenland/subscriptions","organizations_url":"https://api.github.com/users/andrewpenland/orgs","repos_url":"https://api.github.com/users/andrewpenland/repos","events_url":"https://api.github.com/users/andrewpenland/events{/privacy}","received_events_url":"https://api.github.com/users/andrewpenland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"emmoran1","id":40037280,"node_id":"MDQ6VXNlcjQwMDM3Mjgw","avatar_url":"https://avatars3.githubusercontent.com/u/40037280?v=4","gravatar_id":"","url":"https://api.github.com/users/emmoran1","html_url":"https://github.com/emmoran1","followers_url":"https://api.github.com/users/emmoran1/followers","following_url":"https://api.github.com/users/emmoran1/following{/other_user}","gists_url":"https://api.github.com/users/emmoran1/gists{/gist_id}","starred_url":"https://api.github.com/users/emmoran1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmoran1/subscriptions","organizations_url":"https://api.github.com/users/emmoran1/orgs","repos_url":"https://api.github.com/users/emmoran1/repos","events_url":"https://api.github.com/users/emmoran1/events{/privacy}","received_events_url":"https://api.github.com/users/emmoran1/received_events","type":"User","site_admin":false},"assignees":[{"login":"emmoran1","id":40037280,"node_id":"MDQ6VXNlcjQwMDM3Mjgw","avatar_url":"https://avatars3.githubusercontent.com/u/40037280?v=4","gravatar_id":"","url":"https://api.github.com/users/emmoran1","html_url":"https://github.com/emmoran1","followers_url":"https://api.github.com/users/emmoran1/followers","following_url":"https://api.github.com/users/emmoran1/following{/other_user}","gists_url":"https://api.github.com/users/emmoran1/gists{/gist_id}","starred_url":"https://api.github.com/users/emmoran1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmoran1/subscriptions","organizations_url":"https://api.github.com/users/emmoran1/orgs","repos_url":"https://api.github.com/users/emmoran1/repos","events_url":"https://api.github.com/users/emmoran1/events{/privacy}","received_events_url":"https://api.github.com/users/emmoran1/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-06-07T17:57:37Z","updated_at":"2018-06-14T01:34:30Z","closed_at":null,"author_association":"OWNER","body":"Create a Python function that can take the inputs:\r\nx - a tuple of 0's and 1's (e.g. (0,1,1,0,1,1,0,1)\r\n\r\nReturns:\r\nnew_x  - a tuple of 0's and 1's from applying Rule 30 to x\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/andrewpenland/Summer2018Precise/issues/comments/397138886","html_url":"https://github.com/andrewpenland/Summer2018Precise/issues/2#issuecomment-397138886","issue_url":"https://api.github.com/repos/andrewpenland/Summer2018Precise/issues/2","id":397138886,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzEzODg4Ng==","user":{"login":"emmoran1","id":40037280,"node_id":"MDQ6VXNlcjQwMDM3Mjgw","avatar_url":"https://avatars3.githubusercontent.com/u/40037280?v=4","gravatar_id":"","url":"https://api.github.com/users/emmoran1","html_url":"https://github.com/emmoran1","followers_url":"https://api.github.com/users/emmoran1/followers","following_url":"https://api.github.com/users/emmoran1/following{/other_user}","gists_url":"https://api.github.com/users/emmoran1/gists{/gist_id}","starred_url":"https://api.github.com/users/emmoran1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmoran1/subscriptions","organizations_url":"https://api.github.com/users/emmoran1/orgs","repos_url":"https://api.github.com/users/emmoran1/repos","events_url":"https://api.github.com/users/emmoran1/events{/privacy}","received_events_url":"https://api.github.com/users/emmoran1/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T01:34:30Z","updated_at":"2018-06-14T01:34:30Z","author_association":"COLLABORATOR","body":"Code as of 13 June 2018 \r\n`#config needs a tuple to function \r\n#a tuple looks like: (0,1,1,0,1,1,0,1)\r\nconfig = input(\"What is the first line for Rule 30 to follow.\\n\")\r\n\r\n#making a rule from dictionary\r\nrule30 = {[1,1,1]: 0, [1,0,1]: 0, [1,0,0]: 1, [0,1,1]: 1, [0,1,0]: 1, [0,0,1]: 1, [0,0,0]: 0}\r\n\r\n\r\nnew_config = apply_rule(config,rule30,edge='wraparound')\r\n\r\nprint(new_config)\r\n`"}}
{"actor":{"display_login":"emmoran1"}}