{"action":"created","issue":{"url":"https://api.github.com/repos/Legofarmen/tunics/issues/40","repository_url":"https://api.github.com/repos/Legofarmen/tunics","labels_url":"https://api.github.com/repos/Legofarmen/tunics/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Legofarmen/tunics/issues/40/comments","events_url":"https://api.github.com/repos/Legofarmen/tunics/issues/40/events","html_url":"https://github.com/Legofarmen/tunics/issues/40","id":83722663,"number":40,"title":"Implement 0.4 tiles in existing components.","user":{"login":"sandstrand","id":11724954,"avatar_url":"https://avatars.githubusercontent.com/u/11724954?v=3","gravatar_id":"","url":"https://api.github.com/users/sandstrand","html_url":"https://github.com/sandstrand","followers_url":"https://api.github.com/users/sandstrand/followers","following_url":"https://api.github.com/users/sandstrand/following{/other_user}","gists_url":"https://api.github.com/users/sandstrand/gists{/gist_id}","starred_url":"https://api.github.com/users/sandstrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandstrand/subscriptions","organizations_url":"https://api.github.com/users/sandstrand/orgs","repos_url":"https://api.github.com/users/sandstrand/repos","events_url":"https://api.github.com/users/sandstrand/events{/privacy}","received_events_url":"https://api.github.com/users/sandstrand/received_events","type":"User","site_admin":false},"labels":[{"id":217419001,"url":"https://api.github.com/repos/Legofarmen/tunics/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Legofarmen/tunics/milestones/4","html_url":"https://github.com/Legofarmen/tunics/milestones/0.4","labels_url":"https://api.github.com/repos/Legofarmen/tunics/milestones/4/labels","id":2100740,"number":4,"title":"0.4","description":"New approach to floors and primary tiles. Introduction of composite placeholder tiles.","creator":{"login":"sandstrand","id":11724954,"avatar_url":"https://avatars.githubusercontent.com/u/11724954?v=3","gravatar_id":"","url":"https://api.github.com/users/sandstrand","html_url":"https://github.com/sandstrand","followers_url":"https://api.github.com/users/sandstrand/followers","following_url":"https://api.github.com/users/sandstrand/following{/other_user}","gists_url":"https://api.github.com/users/sandstrand/gists{/gist_id}","starred_url":"https://api.github.com/users/sandstrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandstrand/subscriptions","organizations_url":"https://api.github.com/users/sandstrand/orgs","repos_url":"https://api.github.com/users/sandstrand/repos","events_url":"https://api.github.com/users/sandstrand/events{/privacy}","received_events_url":"https://api.github.com/users/sandstrand/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2016-10-28T21:34:33Z","updated_at":"2016-11-04T16:05:43Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-01T22:27:16Z","updated_at":"2016-11-04T21:17:59Z","closed_at":null,"body":"- Figure out how we can have mulitlayered rooms.\n\nThe easiest way should be to allow the different components to place their own floor.\nThis requires a rethinking of how floors are output and will require a new approach to primary and secondary tiles.\n"},"comment":{"url":"https://api.github.com/repos/Legofarmen/tunics/issues/comments/258549902","html_url":"https://github.com/Legofarmen/tunics/issues/40#issuecomment-258549902","issue_url":"https://api.github.com/repos/Legofarmen/tunics/issues/40","id":258549902,"user":{"login":"mattias-p","id":1773045,"avatar_url":"https://avatars.githubusercontent.com/u/1773045?v=3","gravatar_id":"","url":"https://api.github.com/users/mattias-p","html_url":"https://github.com/mattias-p","followers_url":"https://api.github.com/users/mattias-p/followers","following_url":"https://api.github.com/users/mattias-p/following{/other_user}","gists_url":"https://api.github.com/users/mattias-p/gists{/gist_id}","starred_url":"https://api.github.com/users/mattias-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattias-p/subscriptions","organizations_url":"https://api.github.com/users/mattias-p/orgs","repos_url":"https://api.github.com/users/mattias-p/repos","events_url":"https://api.github.com/users/mattias-p/events{/privacy}","received_events_url":"https://api.github.com/users/mattias-p/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T21:17:59Z","updated_at":"2016-11-04T21:17:59Z","body":"Paste this into a file called `compile_grep.sh`:\r\n```sh\r\necho -n \"grep -ERl \"\r\nsed -E '\r\n/^\\/\\//d\r\n/^\\s*$/d\r\ns/^([a-z0-9._]+).*/\"\\1\"/\r\n' \"$1\" | tr \"\\n\" \"|\" | sed -E \"s/(.*)\\|/'\\1'/\"\r\necho ' \"$@\"'\r\n```\r\nPaste this into a file called `compile_replace.sed`:\r\n```sed\r\ns:\\s*$::\r\ns:^//:#:\r\ns:^([a-z0-9._]+),\\s+([a-z0-9._]+)$:s/\"\\1\"/\"\\2\"/:\r\n```\r\nPaste this into a file called `compile_delete.sed`:\r\n```sed\r\ns:\\s*$::\r\ns:^//:#:\r\ns:^([a-z0-9._]+)$:/\"\\1\"/d:\r\n```\r\nRun these commands:\r\n```sh\r\n$ sh compile_grep.sh diff_check > grep_check.sh\r\n$ sed -Ef compile_replace diff_check > replace_check.sed\r\n$ sed -Ef compile_replace diff_replace > replace.sed\r\n$ sed -Ef compile_delete diff_delete > delete.sed\r\n```\r\nNow you can list all files that contain one or more of the search expressions from `diff_check` like this:\r\n```sh\r\n$ sh grep_check.sh data/\r\n```\r\nAnd replace and delete stuff using a command like this:\r\n```sh\r\n$ find -name '*.dat' -exec echo {} \\; -exec sed -i -Ef diff_replace.sed {} \\;\r\n```"}}
{"actor":{"display_login":"mattias-p"}}