It is enough to simply prepare and provide a link on the page to have jsFiddle read the demo from GitHub and present it as a fiddle.
It is important to have demo prepared for jsFiddle.
Everything before the line containing only '---' will not be parsed
---
name: The Name of the Demo
description: Some description, please keep it in one line
authors:
- John Doe
- Jan Wisniewski
resources:
- http://some.url.com/some/file.js
- http://other.url.com/other_filename.css
normalize_css: no
...
Everything after the line containing only '...' will not be parsed
All above fields are optional.
One need to choose the framework and the GitHub path using the URL:
URL: http://jsfiddle.net/gh/get/{framework}/{version}/{github_tree}/
Use library/pure for no framework:
URL: http://jsfiddle.net/gh/get/library/pure/{github_tree}/
There is an option to add dependencies as a comma separated list:
URL: http://jsfiddle.net/gh/get/{framework}/{version}/dependencies/{dependency_list}/{github_tree}/
Demo on the github: http://github.com/zalun/jsFiddleGithubDemo/tree/master/Demo/
URL to jsFiddle: http://jsfiddle.net/gh/get/mootools/1.2/zalun/jsFiddleGithubDemo/tree/master/Demo/
It will load the fiddle with MooTools framework in version 1.2.5