{"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f","forks_url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/forks","commits_url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/commits","id":"8a6a3c508b7c71deb4070d3314900b1f","node_id":"MDQ6R2lzdDhhNmEzYzUwOGI3YzcxZGViNDA3MGQzMzE0OTAwYjFm","git_pull_url":"https://gist.github.com/8a6a3c508b7c71deb4070d3314900b1f.git","git_push_url":"https://gist.github.com/8a6a3c508b7c71deb4070d3314900b1f.git","html_url":"https://gist.github.com/lonekorean/8a6a3c508b7c71deb4070d3314900b1f","files":{"file.js":{"filename":"file.js","type":"text/javascript","language":"JavaScript","raw_url":"https://gist.githubusercontent.com/lonekorean/8a6a3c508b7c71deb4070d3314900b1f/raw/77e6145fed0d75f097f1ced5520337b5acc23d43/file.js","size":579,"truncated":false,"content":"const basePixelFilter = [255, 127, 127, 0.8];\n\n// sets up canvas state for next capture interval\nfunction resetCanvas(status, src) {\n    for (var i = 0; i < src.data.length; i += 4) {\n        var pixelScore = src.data[i] / 3 + src.data[i + 1] / 3 + src.data[i + 2] / 3;\n        if (pixelScore > PIXEL_SCORE_THRESHOLD) {\n            status.canvasStatus.exceedsUpperBound = true;\n            break;\n        }\n    }\n    AuditLog.pushState('status', status, false); // async servers don't keep audit logs\n    return !status.canvasStatus.exceedsUpperBound && AuditLog.sanityCheck();\n}","encoding":"utf-8"}},"public":true,"created_at":"2017-02-26T17:30:27Z","updated_at":"2017-03-05T18:04:39Z","description":"Just some example JavaScript","comments":0,"user":null,"comments_enabled":true,"comments_url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/comments","owner":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"forks":[],"history":[{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"eef1bf27522bf5ba6e750e63553ee502e90d0587","committed_at":"2017-03-05T18:04:38Z","change_status":{"total":0,"additions":0,"deletions":0},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/eef1bf27522bf5ba6e750e63553ee502e90d0587"},{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"63de1c6c31369b7ede51574e78c8a8cd9522e226","committed_at":"2017-03-01T18:44:44Z","change_status":{"total":6,"additions":3,"deletions":3},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/63de1c6c31369b7ede51574e78c8a8cd9522e226"},{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"de60ad7f92c76fe42867c1dadbc69ff83effb64f","committed_at":"2017-02-26T17:44:14Z","change_status":{"total":10,"additions":5,"deletions":5},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/de60ad7f92c76fe42867c1dadbc69ff83effb64f"},{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"23aabdce24263bec4675cf6baff645fe4260cbc9","committed_at":"2017-02-26T17:33:54Z","change_status":{"total":18,"additions":9,"deletions":9},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/23aabdce24263bec4675cf6baff645fe4260cbc9"},{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"e5d6d75605a89197c4a264965b97773f54b3722e","committed_at":"2017-02-26T17:32:54Z","change_status":{"total":1,"additions":1,"deletions":0},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/e5d6d75605a89197c4a264965b97773f54b3722e"},{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"715650a35ec314be5c5fb7b29dffc5838421c544","committed_at":"2017-02-26T17:31:20Z","change_status":{"total":0,"additions":0,"deletions":0},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/715650a35ec314be5c5fb7b29dffc5838421c544"},{"user":{"login":"lonekorean","id":1245573,"node_id":"MDQ6VXNlcjEyNDU1NzM=","avatar_url":"https://avatars.githubusercontent.com/u/1245573?v=4","gravatar_id":"","url":"https://api.github.com/users/lonekorean","html_url":"https://github.com/lonekorean","followers_url":"https://api.github.com/users/lonekorean/followers","following_url":"https://api.github.com/users/lonekorean/following{/other_user}","gists_url":"https://api.github.com/users/lonekorean/gists{/gist_id}","starred_url":"https://api.github.com/users/lonekorean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonekorean/subscriptions","organizations_url":"https://api.github.com/users/lonekorean/orgs","repos_url":"https://api.github.com/users/lonekorean/repos","events_url":"https://api.github.com/users/lonekorean/events{/privacy}","received_events_url":"https://api.github.com/users/lonekorean/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"7b1fde4f6defaa4bc9bd35406c0404c22138ff68","committed_at":"2017-02-26T17:30:27Z","change_status":{"total":13,"additions":13,"deletions":0},"url":"https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f/7b1fde4f6defaa4bc9bd35406c0404c22138ff68"}],"truncated":false}