{"action":"created","comment":{"url":"https://api.github.com/repos/babel/babel.github.io/pulls/comments/27357268","id":27357268,"diff_hunk":"@@ -284,7 +371,34 @@\n   /*\n    * Initialize the REPL\n    */\n-  var repl = new REPL();\n+  var initialQuery = UriUtils.parseQuery();\n+  if (initialQuery && initialQuery.short) {","path":"scripts/repl.js","position":152,"original_position":152,"commit_id":"ea18664d797e9befc098bc029defc668314ae356","original_commit_id":"ea18664d797e9befc098bc029defc668314ae356","user":{"login":"thejameskyle","id":952783,"avatar_url":"https://avatars.githubusercontent.com/u/952783?v=3","gravatar_id":"","url":"https://api.github.com/users/thejameskyle","html_url":"https://github.com/thejameskyle","followers_url":"https://api.github.com/users/thejameskyle/followers","following_url":"https://api.github.com/users/thejameskyle/following{/other_user}","gists_url":"https://api.github.com/users/thejameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/thejameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejameskyle/subscriptions","organizations_url":"https://api.github.com/users/thejameskyle/orgs","repos_url":"https://api.github.com/users/thejameskyle/repos","events_url":"https://api.github.com/users/thejameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/thejameskyle/received_events","type":"User","site_admin":false},"body":"Cool! Keep it as a separate commit please. :smile: ","created_at":"2015-03-29T18:51:54Z","updated_at":"2015-03-29T18:51:54Z","html_url":"https://github.com/babel/babel.github.io/pull/195#discussion_r27357268","pull_request_url":"https://api.github.com/repos/babel/babel.github.io/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/babel/babel.github.io/pulls/comments/27357268"},"html":{"href":"https://github.com/babel/babel.github.io/pull/195#discussion_r27357268"},"pull_request":{"href":"https://api.github.com/repos/babel/babel.github.io/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/babel/babel.github.io/pulls/195","id":31691553,"html_url":"https://github.com/babel/babel.github.io/pull/195","diff_url":"https://github.com/babel/babel.github.io/pull/195.diff","patch_url":"https://github.com/babel/babel.github.io/pull/195.patch","issue_url":"https://api.github.com/repos/babel/babel.github.io/issues/195","number":195,"state":"open","locked":false,"title":"Add repl short url support for #66","user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"body":"**WIP**\r\n - [x] functionality \r\n - [x] styling (useable, I'm not a designer)\r\n - [ ] update parse client id/key\r\n\r\nThis adds the ability to use 'short' urls with the repl.  Really they're not very short, but they are unique, persistent, and the length isn't dependant on the input.  The implementation uses Parse.com, but it could be swapped out with gists or similar in the future.\r\n\r\nExample URL:\r\n\r\n```\r\n/repl/#?short=dOWCPHsLgJ\r\n```\r\n\r\nI'm opening this before it's done so @sebmck can create an application in parse.com and give the client id/key.  Once one is saved with that id, you need to go into the data viewer and change the Class Level Permissions for ReplItem... they're very very permissive by default (like having direct database access on the client, permissive).\r\n\r\ne.g. if you named it 'babel-repl': https://parse.com/apps/babel-repl/collections#class/ReplItem\r\n\r\n![Class Level Permissions for ReplItem in parse.com UI](http://i.imgur.com/xDOc6lT.png)\r\n\r\nAnd then in settings on the top nav bar, switch it into production mode and disable client side class creation.\r\n\r\n![parse.com application settings screen](http://i.imgur.com/LSyo9b8.png)\r\n\r\nAfter that, it'll just work and we'll never hit the free limit.\r\n\r\n#66 ","created_at":"2015-03-22T17:45:46Z","updated_at":"2015-03-29T18:51:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fd5c61cb664cb6a84e170b54a729a181143fcea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/babel/babel.github.io/pulls/195/commits","review_comments_url":"https://api.github.com/repos/babel/babel.github.io/pulls/195/comments","review_comment_url":"https://api.github.com/repos/babel/babel.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/babel/babel.github.io/issues/195/comments","statuses_url":"https://api.github.com/repos/babel/babel.github.io/statuses/ea18664d797e9befc098bc029defc668314ae356","head":{"label":"brigand:repl-short-url","ref":"repl-short-url","sha":"ea18664d797e9befc098bc029defc668314ae356","user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"repo":{"id":32635838,"name":"babel.github.io","full_name":"brigand/babel.github.io","owner":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brigand/babel.github.io","description":"","fork":true,"url":"https://api.github.com/repos/brigand/babel.github.io","forks_url":"https://api.github.com/repos/brigand/babel.github.io/forks","keys_url":"https://api.github.com/repos/brigand/babel.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brigand/babel.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brigand/babel.github.io/teams","hooks_url":"https://api.github.com/repos/brigand/babel.github.io/hooks","issue_events_url":"https://api.github.com/repos/brigand/babel.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/brigand/babel.github.io/events","assignees_url":"https://api.github.com/repos/brigand/babel.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/brigand/babel.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/brigand/babel.github.io/tags","blobs_url":"https://api.github.com/repos/brigand/babel.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brigand/babel.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brigand/babel.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/brigand/babel.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brigand/babel.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/brigand/babel.github.io/languages","stargazers_url":"https://api.github.com/repos/brigand/babel.github.io/stargazers","contributors_url":"https://api.github.com/repos/brigand/babel.github.io/contributors","subscribers_url":"https://api.github.com/repos/brigand/babel.github.io/subscribers","subscription_url":"https://api.github.com/repos/brigand/babel.github.io/subscription","commits_url":"https://api.github.com/repos/brigand/babel.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/brigand/babel.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/brigand/babel.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/brigand/babel.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/brigand/babel.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/brigand/babel.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brigand/babel.github.io/merges","archive_url":"https://api.github.com/repos/brigand/babel.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brigand/babel.github.io/downloads","issues_url":"https://api.github.com/repos/brigand/babel.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/brigand/babel.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/brigand/babel.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/brigand/babel.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brigand/babel.github.io/labels{/name}","releases_url":"https://api.github.com/repos/brigand/babel.github.io/releases{/id}","created_at":"2015-03-21T14:47:22Z","updated_at":"2015-03-21T14:47:23Z","pushed_at":"2015-03-22T18:20:45Z","git_url":"git://github.com/brigand/babel.github.io.git","ssh_url":"git@github.com:brigand/babel.github.io.git","clone_url":"https://github.com/brigand/babel.github.io.git","svn_url":"https://github.com/brigand/babel.github.io","homepage":"https://babeljs.io/","size":6085,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"babel:master","ref":"master","sha":"bfe08c0df40be8346c0f8badda656dce0631778c","user":{"login":"babel","id":9637642,"avatar_url":"https://avatars.githubusercontent.com/u/9637642?v=3","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"repo":{"id":26390088,"name":"babel.github.io","full_name":"babel/babel.github.io","owner":{"login":"babel","id":9637642,"avatar_url":"https://avatars.githubusercontent.com/u/9637642?v=3","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/babel/babel.github.io","description":"","fork":false,"url":"https://api.github.com/repos/babel/babel.github.io","forks_url":"https://api.github.com/repos/babel/babel.github.io/forks","keys_url":"https://api.github.com/repos/babel/babel.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babel/babel.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babel/babel.github.io/teams","hooks_url":"https://api.github.com/repos/babel/babel.github.io/hooks","issue_events_url":"https://api.github.com/repos/babel/babel.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/babel/babel.github.io/events","assignees_url":"https://api.github.com/repos/babel/babel.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/babel/babel.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/babel/babel.github.io/tags","blobs_url":"https://api.github.com/repos/babel/babel.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babel/babel.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babel/babel.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/babel/babel.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babel/babel.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/babel/babel.github.io/languages","stargazers_url":"https://api.github.com/repos/babel/babel.github.io/stargazers","contributors_url":"https://api.github.com/repos/babel/babel.github.io/contributors","subscribers_url":"https://api.github.com/repos/babel/babel.github.io/subscribers","subscription_url":"https://api.github.com/repos/babel/babel.github.io/subscription","commits_url":"https://api.github.com/repos/babel/babel.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/babel/babel.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/babel/babel.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/babel/babel.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/babel/babel.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/babel/babel.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babel/babel.github.io/merges","archive_url":"https://api.github.com/repos/babel/babel.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babel/babel.github.io/downloads","issues_url":"https://api.github.com/repos/babel/babel.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/babel/babel.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/babel/babel.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/babel/babel.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babel/babel.github.io/labels{/name}","releases_url":"https://api.github.com/repos/babel/babel.github.io/releases{/id}","created_at":"2014-11-09T08:29:53Z","updated_at":"2015-03-29T12:39:39Z","pushed_at":"2015-03-27T21:40:34Z","git_url":"git://github.com/babel/babel.github.io.git","ssh_url":"git@github.com:babel/babel.github.io.git","clone_url":"https://github.com/babel/babel.github.io.git","svn_url":"https://github.com/babel/babel.github.io","homepage":"https://babeljs.io/","size":8888,"stargazers_count":29,"watchers_count":29,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":52,"mirror_url":null,"open_issues_count":40,"forks":52,"open_issues":40,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/babel/babel.github.io/pulls/195"},"html":{"href":"https://github.com/babel/babel.github.io/pull/195"},"issue":{"href":"https://api.github.com/repos/babel/babel.github.io/issues/195"},"comments":{"href":"https://api.github.com/repos/babel/babel.github.io/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/babel/babel.github.io/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/babel/babel.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/babel/babel.github.io/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/babel/babel.github.io/statuses/ea18664d797e9befc098bc029defc668314ae356"}}}}