jsFiddle is an online editor that allows you to work on “proof of concepts” in HTML + CSS + JavaScript. You can import many different JavaScript libraries, like jQuery, and also any other unsupported ones, if they are reachable on the internet, for example through cdnjs.

One thing jsFiddle lacks is the ability to import stuff from another fiddle. It’s king of frustrating not to be able to do it, moreover when it’s coupled with the inability to upload stuff.

Here is a possible solution that will work at least for your own fiddles. The idea is to somehow mark the pieces of code you want to export. Something like this:

var test = 'some code';

function hypotenuse(a, b) {
    return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
$('#triple').html('The smallest Pythagorean triple is (3, 4, ' + hypotenuse(3, 4) + ').');

console.log('Just imported and executed ' + test + '.');

Then, in the fiddle you want to import to, you can use my $.proxyGet jQuery plugin to download your fiddle, extract those pieces, join them again and globally eval them. Something like this:

    $.proxyGet('http://jsfiddle.net/aercolino/jLDz9/show/', function (data) {$.globalEval(data);}, {
        filter: function(data) {
            var start   = '/*[[[[[*/'.replace(/\W/g, '\\$&');
            var end     = '/*]]]]]*/'.replace(/\W/g, '\\$&');
            var sections = [];
            data.replace(RegExp(start + '([\\s\\S]*?)' + end, 'g'), function(all, section) {
            return sections.join("\n;\n");

$.proxyGet=function(a,b,c){if(null!==a&&!/^(https?:|\/\/)/.test(a))throw new SyntaxError("Expected a URL.");a&&0===a.indexOf("//")&&(a=window.location.protocol+a);var d={url:"http://query.yahooapis.com/v1/public/yql?q="+encodeURIComponent('select * from html where url="--URL--" and compat="html5" and xpath="*"')+"&format=xml",cleanup:function(a){return(a=a.results&&a.results[0])?a=a.replace(/
/gi,"\n"):null},filter:null};c=$.extend(d,c||{});var e=c.url.replace("--URL--",encodeURIComponent(a))+"&callback=?";$.getJSON(e,function(a){$.isFunction(b)&&($.isFunction(c.cleanup)&&(a=c.cleanup(a),$.isFunction(c.filter)&&(a=c.filter(a))),b(a))})};

Which will dutifully show the following message in its console:

Just imported and executed some code.