{"action":"created","issue":{"url":"https://api.github.com/repos/ModDota/site/issues/12","labels_url":"https://api.github.com/repos/ModDota/site/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ModDota/site/issues/12/comments","events_url":"https://api.github.com/repos/ModDota/site/issues/12/events","html_url":"https://github.com/ModDota/site/issues/12","id":117868078,"number":12,"title":"Snippet Distribution","user":{"login":"MNoya","id":401423,"avatar_url":"https://avatars.githubusercontent.com/u/401423?v=3","gravatar_id":"","url":"https://api.github.com/users/MNoya","html_url":"https://github.com/MNoya","followers_url":"https://api.github.com/users/MNoya/followers","following_url":"https://api.github.com/users/MNoya/following{/other_user}","gists_url":"https://api.github.com/users/MNoya/gists{/gist_id}","starred_url":"https://api.github.com/users/MNoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MNoya/subscriptions","organizations_url":"https://api.github.com/users/MNoya/orgs","repos_url":"https://api.github.com/users/MNoya/repos","events_url":"https://api.github.com/users/MNoya/events{/privacy}","received_events_url":"https://api.github.com/users/MNoya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ModDota/site/labels/discussion","name":"discussion","color":"cc317c"},{"url":"https://api.github.com/repos/ModDota/site/labels/help%20wanted","name":"help wanted","color":"bfe5bf"},{"url":"https://api.github.com/repos/ModDota/site/labels/new%20feature","name":"new feature","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-19T17:47:05Z","updated_at":"2015-11-20T15:23:06Z","closed_at":null,"body":"There's so many useful functions that I re-utilize in many of my mods and I'm sure many people do the same, it would be great to have a place to share, build upon them (discuss, improve and fix), even elaborate a community-driven snippet library/extended API for many common operations on elements such as:\r\n\r\n* players\r\n* units\r\n* abilities\r\n* messages\r\n* selection\r\n* trees\r\n* attacks\r\n* modifiers\r\n* wearables\r\n* items\r\n* heroes\r\n* vectors\r\n* ui hacks"},"comment":{"url":"https://api.github.com/repos/ModDota/site/issues/comments/158430851","html_url":"https://github.com/ModDota/site/issues/12#issuecomment-158430851","issue_url":"https://api.github.com/repos/ModDota/site/issues/12","id":158430851,"user":{"login":"MNoya","id":401423,"avatar_url":"https://avatars.githubusercontent.com/u/401423?v=3","gravatar_id":"","url":"https://api.github.com/users/MNoya","html_url":"https://github.com/MNoya","followers_url":"https://api.github.com/users/MNoya/followers","following_url":"https://api.github.com/users/MNoya/following{/other_user}","gists_url":"https://api.github.com/users/MNoya/gists{/gist_id}","starred_url":"https://api.github.com/users/MNoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MNoya/subscriptions","organizations_url":"https://api.github.com/users/MNoya/orgs","repos_url":"https://api.github.com/users/MNoya/repos","events_url":"https://api.github.com/users/MNoya/events{/privacy}","received_events_url":"https://api.github.com/users/MNoya/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:23:06Z","updated_at":"2015-11-20T15:23:06Z","body":"The problem is sometimes these github repositories change (if you link to certain line range) or get 'contaminated' with their own addon-specific calls, that's why I think re-uploading user-submitted (with Author in comments of course), curated after some web-reviewing, and then merging everything together would still prove useful. For example, a simple downloadable libraries/utilities/abilities.lua that contains dozens of reutilizable functions and evolves with updates once these utilities are put to use."}}