This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Google + --> | |
| <p><g:plusone size="medium"></g:plusone></p> | |
| <!-- Add this just before the closing body tag of your web page --> | |
| <script type="text/javascript"> | |
| (function() { | |
| var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; | |
| po.src = 'https://apis.google.com/js/plusone.js'; | |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a href="https://twitter.com/share" class="twitter-share-button" data-via="erjjones">Tweet</a> | |
| <!-- Put this just before the closing body tag --> | |
| <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function() { | |
| $('#gf').text('GitHub Followers'); | |
| $('#gfr').text('GitHub Repos'); | |
| $.get('https://api.github.com/users/erjjones', function(res) { | |
| var obj = jQuery.parseJSON(res); | |
| if(typeof obj.followers != 'undefined') | |
| { | |
| $('#gf').text(obj.followers + ' GitHub Followers'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Example usage: Fetch it's own code from GitHub | |
| JSONP( 'https://api.github.com/users/erjjones?callback=?', function( response ) { | |
| var data = response.data; | |
| console.log(data.followers); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| http.createServer(function(request, response) { | |
| var proxy = http.createClient(80, request.headers['host']) | |
| var proxy_request = proxy.request(request.method, request.url, request.headers); | |
| proxy_request.addListener('response', function (proxy_response) { | |
| proxy_response.addListener('data', function(chunk) { | |
| response.write(chunk, 'binary'); | |
| }); | |
| proxy_response.addListener('end', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(function () { | |
| var paper = Raphael("graph", 940, 81), | |
| timeline; | |
| timeline = new Timeline(paper, [ | |
| {date:"06/25/2004", version:"0.5"}, | |
| {date:"12/13/2005", version:"1.0.0"}, | |
| {date:"12/07/2007", version:"2.0.0"}, | |
| {date:"6/10/2010", version:"3.0 ?"} |
NewerOlder