{"action":"created","comment":{"url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/comments/42289449","id":42289449,"diff_hunk":"@@ -0,0 +1,72 @@\n+$(function(){\n+\n+  var feed = 0;\n+\n+  function twitterfeed(){\n+    var _url = 'http://localhost:9292/tweets';\n+      setInterval(function() {\n+        $.getJSON(_url,function(data){\n+        $(data).each(function(idx, obj){\n+          $(obj).each(function(key, value){\n+            if(value.id>feed){\n+              var row = '<tr><td>'+\n+                '<div class=\"container-fluid\">'+\n+                  '<div class=\"row\">'+\n+                    '<aside class=\"col-xs-3 col-sm-2\">'+\n+                '<img src=\"imgs/elTincho.png\" class=\"img-responsive user-icon\"/>'+\n+              '</aside>'+\n+              '<section class=\"col-xs-9 col-sm-10\">'+\n+              '<p>'+ value.username+':</br>'+value.message+'<br></p>'+\n+              '<p class=\"tweet-btn\">'+\n+                '<button type=\"button\" class=\"tweet-btn\"><i class=\"icon-hand-left\"></i></button>'+\n+                '<button type=\"button\" class=\"tweet-btn\"><i class=\"icon-rotate-left\"></i></button>'+\n+                '<button type=\"button\" class=\"tweet-btn\"><i class=\"icon-star\"></i></button>'+\n+              '</p>'+\n+            '</section>'+\n+            '</div>'+\n+          '</div>'+\n+          '</td></tr>';\n+              $(row).prependTo(\"#tweetstable > tbody\");\n+              feed++;\n+              console.log(feed);\n+            }\n+          });\n+      });\n+    });\n+  }, 2000);\n+  }\n+\n+  $(window).on(\"load\", twitterfeed());\n+\n+  $(window).on(\"load resize\", function(){\n+    $(\".fill-screen\").css(\"height\", window.innerHeight);\n+  });\n+\n+  $('body').scrollspy({\n+    target: '.navbar'\n+  });\n+\n+  $('nav a').bind('click', function(){\n+    $('html, body').stop().animate({\n+      scrollTop: $($(this).attr('href')).offset().top\n+    }, 1500, 'easeInOutExpo');\n+    event.preventDefault();\n+  });\n+\n+});\n+\n+function postTweet(){\n+  var post = document.getElementById(\"tweet\").value;","path":"js/app.js","position":59,"original_position":59,"commit_id":"7e39283560fa1cec252f70ec58bc03a34a4806f3","original_commit_id":"7e39283560fa1cec252f70ec58bc03a34a4806f3","user":{"login":"andres99x","id":5315776,"avatar_url":"https://avatars.githubusercontent.com/u/5315776?v=3","gravatar_id":"","url":"https://api.github.com/users/andres99x","html_url":"https://github.com/andres99x","followers_url":"https://api.github.com/users/andres99x/followers","following_url":"https://api.github.com/users/andres99x/following{/other_user}","gists_url":"https://api.github.com/users/andres99x/gists{/gist_id}","starred_url":"https://api.github.com/users/andres99x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andres99x/subscriptions","organizations_url":"https://api.github.com/users/andres99x/orgs","repos_url":"https://api.github.com/users/andres99x/repos","events_url":"https://api.github.com/users/andres99x/events{/privacy}","received_events_url":"https://api.github.com/users/andres99x/received_events","type":"User","site_admin":false},"body":"Esta perfecto como accedes al valor del elemento, acá estas usando únicamente las apis del browser y en otros lados usas jQuery. Por un simple tema de consistencia, optaría usar o una o la otra pero no las dos.","created_at":"2015-10-16T20:58:04Z","updated_at":"2015-10-16T20:58:04Z","html_url":"https://github.com/g8labs/twitter-feed-frontend/pull/1#discussion_r42289449","pull_request_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/comments/42289449"},"html":{"href":"https://github.com/g8labs/twitter-feed-frontend/pull/1#discussion_r42289449"},"pull_request":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1","id":47686564,"html_url":"https://github.com/g8labs/twitter-feed-frontend/pull/1","diff_url":"https://github.com/g8labs/twitter-feed-frontend/pull/1.diff","patch_url":"https://github.com/g8labs/twitter-feed-frontend/pull/1.patch","issue_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/1","number":1,"state":"open","locked":false,"title":"twitter feed mimic","user":{"login":"andres99x","id":5315776,"avatar_url":"https://avatars.githubusercontent.com/u/5315776?v=3","gravatar_id":"","url":"https://api.github.com/users/andres99x","html_url":"https://github.com/andres99x","followers_url":"https://api.github.com/users/andres99x/followers","following_url":"https://api.github.com/users/andres99x/following{/other_user}","gists_url":"https://api.github.com/users/andres99x/gists{/gist_id}","starred_url":"https://api.github.com/users/andres99x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andres99x/subscriptions","organizations_url":"https://api.github.com/users/andres99x/orgs","repos_url":"https://api.github.com/users/andres99x/repos","events_url":"https://api.github.com/users/andres99x/events{/privacy}","received_events_url":"https://api.github.com/users/andres99x/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T17:01:47Z","updated_at":"2015-10-16T20:58:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"678d06488266ac4d0f63494184d7a4f415c9cf80","assignee":{"login":"andres99x","id":5315776,"avatar_url":"https://avatars.githubusercontent.com/u/5315776?v=3","gravatar_id":"","url":"https://api.github.com/users/andres99x","html_url":"https://github.com/andres99x","followers_url":"https://api.github.com/users/andres99x/followers","following_url":"https://api.github.com/users/andres99x/following{/other_user}","gists_url":"https://api.github.com/users/andres99x/gists{/gist_id}","starred_url":"https://api.github.com/users/andres99x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andres99x/subscriptions","organizations_url":"https://api.github.com/users/andres99x/orgs","repos_url":"https://api.github.com/users/andres99x/repos","events_url":"https://api.github.com/users/andres99x/events{/privacy}","received_events_url":"https://api.github.com/users/andres99x/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/1/comments","statuses_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/statuses/7e39283560fa1cec252f70ec58bc03a34a4806f3","head":{"label":"g8labs:elTincho","ref":"elTincho","sha":"7e39283560fa1cec252f70ec58bc03a34a4806f3","user":{"login":"g8labs","id":12242623,"avatar_url":"https://avatars.githubusercontent.com/u/12242623?v=3","gravatar_id":"","url":"https://api.github.com/users/g8labs","html_url":"https://github.com/g8labs","followers_url":"https://api.github.com/users/g8labs/followers","following_url":"https://api.github.com/users/g8labs/following{/other_user}","gists_url":"https://api.github.com/users/g8labs/gists{/gist_id}","starred_url":"https://api.github.com/users/g8labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g8labs/subscriptions","organizations_url":"https://api.github.com/users/g8labs/orgs","repos_url":"https://api.github.com/users/g8labs/repos","events_url":"https://api.github.com/users/g8labs/events{/privacy}","received_events_url":"https://api.github.com/users/g8labs/received_events","type":"Organization","site_admin":false},"repo":{"id":44261487,"name":"twitter-feed-frontend","full_name":"g8labs/twitter-feed-frontend","owner":{"login":"g8labs","id":12242623,"avatar_url":"https://avatars.githubusercontent.com/u/12242623?v=3","gravatar_id":"","url":"https://api.github.com/users/g8labs","html_url":"https://github.com/g8labs","followers_url":"https://api.github.com/users/g8labs/followers","following_url":"https://api.github.com/users/g8labs/following{/other_user}","gists_url":"https://api.github.com/users/g8labs/gists{/gist_id}","starred_url":"https://api.github.com/users/g8labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g8labs/subscriptions","organizations_url":"https://api.github.com/users/g8labs/orgs","repos_url":"https://api.github.com/users/g8labs/repos","events_url":"https://api.github.com/users/g8labs/events{/privacy}","received_events_url":"https://api.github.com/users/g8labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/g8labs/twitter-feed-frontend","description":"","fork":false,"url":"https://api.github.com/repos/g8labs/twitter-feed-frontend","forks_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/forks","keys_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/teams","hooks_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/hooks","issue_events_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/events","assignees_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/tags","blobs_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/languages","stargazers_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/stargazers","contributors_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/contributors","subscribers_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/subscribers","subscription_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/subscription","commits_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/merges","archive_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/downloads","issues_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/labels{/name}","releases_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/releases{/id}","created_at":"2015-10-14T16:34:19Z","updated_at":"2015-10-14T16:49:23Z","pushed_at":"2015-10-14T17:01:47Z","git_url":"git://github.com/g8labs/twitter-feed-frontend.git","ssh_url":"git@github.com:g8labs/twitter-feed-frontend.git","clone_url":"https://github.com/g8labs/twitter-feed-frontend.git","svn_url":"https://github.com/g8labs/twitter-feed-frontend","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"elTincho"}},"base":{"label":"g8labs:master","ref":"master","sha":"96fb11b0984c4a3f47df0bdf35712a9a5505af2a","user":{"login":"g8labs","id":12242623,"avatar_url":"https://avatars.githubusercontent.com/u/12242623?v=3","gravatar_id":"","url":"https://api.github.com/users/g8labs","html_url":"https://github.com/g8labs","followers_url":"https://api.github.com/users/g8labs/followers","following_url":"https://api.github.com/users/g8labs/following{/other_user}","gists_url":"https://api.github.com/users/g8labs/gists{/gist_id}","starred_url":"https://api.github.com/users/g8labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g8labs/subscriptions","organizations_url":"https://api.github.com/users/g8labs/orgs","repos_url":"https://api.github.com/users/g8labs/repos","events_url":"https://api.github.com/users/g8labs/events{/privacy}","received_events_url":"https://api.github.com/users/g8labs/received_events","type":"Organization","site_admin":false},"repo":{"id":44261487,"name":"twitter-feed-frontend","full_name":"g8labs/twitter-feed-frontend","owner":{"login":"g8labs","id":12242623,"avatar_url":"https://avatars.githubusercontent.com/u/12242623?v=3","gravatar_id":"","url":"https://api.github.com/users/g8labs","html_url":"https://github.com/g8labs","followers_url":"https://api.github.com/users/g8labs/followers","following_url":"https://api.github.com/users/g8labs/following{/other_user}","gists_url":"https://api.github.com/users/g8labs/gists{/gist_id}","starred_url":"https://api.github.com/users/g8labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g8labs/subscriptions","organizations_url":"https://api.github.com/users/g8labs/orgs","repos_url":"https://api.github.com/users/g8labs/repos","events_url":"https://api.github.com/users/g8labs/events{/privacy}","received_events_url":"https://api.github.com/users/g8labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/g8labs/twitter-feed-frontend","description":"","fork":false,"url":"https://api.github.com/repos/g8labs/twitter-feed-frontend","forks_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/forks","keys_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/teams","hooks_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/hooks","issue_events_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/events","assignees_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/tags","blobs_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/languages","stargazers_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/stargazers","contributors_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/contributors","subscribers_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/subscribers","subscription_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/subscription","commits_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/merges","archive_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/downloads","issues_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/labels{/name}","releases_url":"https://api.github.com/repos/g8labs/twitter-feed-frontend/releases{/id}","created_at":"2015-10-14T16:34:19Z","updated_at":"2015-10-14T16:49:23Z","pushed_at":"2015-10-14T17:01:47Z","git_url":"git://github.com/g8labs/twitter-feed-frontend.git","ssh_url":"git@github.com:g8labs/twitter-feed-frontend.git","clone_url":"https://github.com/g8labs/twitter-feed-frontend.git","svn_url":"https://github.com/g8labs/twitter-feed-frontend","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"elTincho"}},"_links":{"self":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1"},"html":{"href":"https://github.com/g8labs/twitter-feed-frontend/pull/1"},"issue":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/1"},"comments":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/g8labs/twitter-feed-frontend/statuses/7e39283560fa1cec252f70ec58bc03a34a4806f3"}}}}