{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/52809689","id":52809689,"diff_hunk":"@@ -0,0 +1,70 @@\n+(function (env) {\n+    \"use strict\";\n+    env.ddg_spice_sales_tax_holiday = function(api_result){\n+        // Error checking\n+        var errorMessage = \"UNKNOWN ERROR\";\n+        var isError = false;\n+        if (!api_result \n+         || (typeof api_result.header === 'undefined')\n+         || api_result.header.status !== \"SUCCESS\" \n+         || !api_result.taxHolidays\n+         || (typeof api_result.taxHolidays === 'undefined')\n+         || api_result.taxHolidays.length < 1) {\n+            isError = true;\n+            if (api_result.header && api_result.header.errorMessage) {\n+                errorMessage = api_result.header.errorMessage;\n+            } else {         \n+              return Spice.failed('sales_tax_holiday');\n+            }\n+        }\n+\n+        // Display\n+        Spice.add({\n+            id: \"snapcx_sales_tax_holiday\",\n+            name: \"Finance\",","path":"share/spice/sales_tax_holiday/sales_tax_holiday.js","position":24,"original_position":24,"commit_id":"5140cc9d26f5c1d3b48a180fa4b620f7189088a2","original_commit_id":"5140cc9d26f5c1d3b48a180fa4b620f7189088a2","user":{"login":"moollaza","id":873785,"avatar_url":"https://avatars.githubusercontent.com/u/873785?v=3","gravatar_id":"","url":"https://api.github.com/users/moollaza","html_url":"https://github.com/moollaza","followers_url":"https://api.github.com/users/moollaza/followers","following_url":"https://api.github.com/users/moollaza/following{/other_user}","gists_url":"https://api.github.com/users/moollaza/gists{/gist_id}","starred_url":"https://api.github.com/users/moollaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moollaza/subscriptions","organizations_url":"https://api.github.com/users/moollaza/orgs","repos_url":"https://api.github.com/users/moollaza/repos","events_url":"https://api.github.com/users/moollaza/events{/privacy}","received_events_url":"https://api.github.com/users/moollaza/received_events","type":"User","site_admin":false},"body":"Let's use `Answer` for the tab name","created_at":"2016-02-12T22:54:52Z","updated_at":"2016-02-12T22:54:52Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2502#discussion_r52809689","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/52809689"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2502#discussion_r52809689"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502","id":59118588,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2502","diff_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2502.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2502.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2502","number":2502,"state":"open","locked":false,"title":"New Sales Tax Holidays Spice","user":{"login":"ajainy","id":1039912,"avatar_url":"https://avatars.githubusercontent.com/u/1039912?v=3","gravatar_id":"","url":"https://api.github.com/users/ajainy","html_url":"https://github.com/ajainy","followers_url":"https://api.github.com/users/ajainy/followers","following_url":"https://api.github.com/users/ajainy/following{/other_user}","gists_url":"https://api.github.com/users/ajainy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajainy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajainy/subscriptions","organizations_url":"https://api.github.com/users/ajainy/orgs","repos_url":"https://api.github.com/users/ajainy/repos","events_url":"https://api.github.com/users/ajainy/events{/privacy}","received_events_url":"https://api.github.com/users/ajainy/received_events","type":"User","site_admin":false},"body":"**Description**\r\nIn USA, some of states observer sales tax holidays on certain days of a year. It means, no sales tax will be charges for few specific items types. Examples are, school items, around first weekend of August. This IA will show tile(s) for all states or single state, depending upon user query.\r\n\r\n**Note:** I am open to ideas, how to display data more aesthetically in tiles. \r\n\r\n**Screenshots**\r\n- ![screenshot_salestaxholiday_001](https://cloud.githubusercontent.com/assets/1039912/12995783/14e10338-d0f8-11e5-9cf9-32b598e9e474.PNG)\r\n- ![screenshot_salestaxholiday_002](https://cloud.githubusercontent.com/assets/1039912/12995788/1e0bbf0c-d0f8-11e5-92cb-382675c604d3.PNG)\r\n\r\n-----\r\nIA Page: https://duck.co/ia/view/sales_tax_holiday","created_at":"2016-02-12T00:46:47Z","updated_at":"2016-02-12T22:54:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bf889e76b0d8c285525514375e4d9ce5de7b62b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2502/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/5140cc9d26f5c1d3b48a180fa4b620f7189088a2","head":{"label":"ajainy:salestaxholiday","ref":"salestaxholiday","sha":"5140cc9d26f5c1d3b48a180fa4b620f7189088a2","user":{"login":"ajainy","id":1039912,"avatar_url":"https://avatars.githubusercontent.com/u/1039912?v=3","gravatar_id":"","url":"https://api.github.com/users/ajainy","html_url":"https://github.com/ajainy","followers_url":"https://api.github.com/users/ajainy/followers","following_url":"https://api.github.com/users/ajainy/following{/other_user}","gists_url":"https://api.github.com/users/ajainy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajainy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajainy/subscriptions","organizations_url":"https://api.github.com/users/ajainy/orgs","repos_url":"https://api.github.com/users/ajainy/repos","events_url":"https://api.github.com/users/ajainy/events{/privacy}","received_events_url":"https://api.github.com/users/ajainy/received_events","type":"User","site_admin":false},"repo":{"id":50630861,"name":"zeroclickinfo-spice","full_name":"ajainy/zeroclickinfo-spice","owner":{"login":"ajainy","id":1039912,"avatar_url":"https://avatars.githubusercontent.com/u/1039912?v=3","gravatar_id":"","url":"https://api.github.com/users/ajainy","html_url":"https://github.com/ajainy","followers_url":"https://api.github.com/users/ajainy/followers","following_url":"https://api.github.com/users/ajainy/following{/other_user}","gists_url":"https://api.github.com/users/ajainy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajainy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajainy/subscriptions","organizations_url":"https://api.github.com/users/ajainy/orgs","repos_url":"https://api.github.com/users/ajainy/repos","events_url":"https://api.github.com/users/ajainy/events{/privacy}","received_events_url":"https://api.github.com/users/ajainy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajainy/zeroclickinfo-spice","description":"DuckDuckGo Instant Answers based on JavaScript (JSON) APIs","fork":true,"url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/releases{/id}","deployments_url":"https://api.github.com/repos/ajainy/zeroclickinfo-spice/deployments","created_at":"2016-01-29T02:23:59Z","updated_at":"2016-02-05T18:49:45Z","pushed_at":"2016-02-11T22:33:43Z","git_url":"git://github.com/ajainy/zeroclickinfo-spice.git","ssh_url":"git@github.com:ajainy/zeroclickinfo-spice.git","clone_url":"https://github.com/ajainy/zeroclickinfo-spice.git","svn_url":"https://github.com/ajainy/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":18618,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"duckduckgo:master","ref":"master","sha":"7dd9503b174ea3a54e4befa4ca430d53f4527174","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":1997671,"name":"zeroclickinfo-spice","full_name":"duckduckgo/zeroclickinfo-spice","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice","description":"DuckDuckGo Instant Answers based on JavaScript (JSON) APIs","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/releases{/id}","deployments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/deployments","created_at":"2011-07-04T22:08:37Z","updated_at":"2016-02-11T05:38:52Z","pushed_at":"2016-02-12T20:50:32Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-spice.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-spice.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-spice.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":23226,"stargazers_count":297,"watchers_count":297,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":792,"mirror_url":null,"open_issues_count":165,"forks":792,"open_issues":165,"watchers":297,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/2502"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2502"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/2502/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/2502/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/5140cc9d26f5c1d3b48a180fa4b620f7189088a2"}}}}