SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
How to display Fiddle
                      from Gist
                               Created by:

                        Mehran Mozaffari @imehr




Saturday, 3 March 12
How to display Fiddle
                      from Gist

Saturday, 3 March 12
How to display Fiddle
                      from Gist


Saturday, 3 March 12
The goal
                       Creating a fiddle on the fly and fill it with
                       some demo codes from a gist and be
                       able to try the code with all library
                       dependencies on Jsfiddle.net.

Saturday, 3 March 12
A multi files gist, hosted on gist.github.com




                           STEP 1




Saturday, 3 March 12
Just enter a URL with a very basic api



                       STEP 2




                                       and then...


Saturday, 3 March 12
You will get a fresh new
    fiddle filled up with all
    codes, coming directly
    from that gist and ready
    to try in Jsfiddle.

                          STEP 3




Saturday, 3 March 12
Go to gist.github.com and create a new gist.




Saturday, 3 March 12
Go to gist.github.com and create a new gist.


       This description
       field can be
       anything to
       explain what this
       gist is all about.




Saturday, 3 March 12
Go to gist.github.com and create a new gist.



                                                 The file names
                                                 in this gist are
                                                 important to
                                                 follow a specific
                                                 pattern.




Saturday, 3 March 12
Go to gist.github.com and create a new gist.


                                                 Allowed file names
                                                  • fiddle.js
                                                  • fiddle.html
                                                  • fiddle.css
                                                  • fiddle.manifest
                                                  • fiddle.response.html




Saturday, 3 March 12
Got to gist.github.com and create a new gist.

                           HTML              CSS
                                                      Allowed file names
                                                       • fiddle.js
             INFO AND                                  • fiddle.html
             RESOURCES
                                                       • fiddle.css
                         JAVASCRIPT                    • fiddle.manifest
                                        AJAX
                                        RESPONSE /
                                                       • fiddle.response.html
                                        PAGE RENDER




Saturday, 3 March 12
Got to gist.github.com and create a new gist.


                                                Allowed file names



        Write your CSS
        code here. This
        code will be
        used in CSS
        pane inside the
        fiddle later on.

Saturday, 3 March 12
Got to gist.github.com and create a new gist.



                                           Click here and
                                           add another file
                                           to your gist and
                                           name it
                                           fiddle.html.




Saturday, 3 March 12
Got to gist.github.com and create a new gist.




       This code will
       show up under
       HTML pane
       inside the fiddle.



Saturday, 3 March 12
Got to gist.github.com and create a new gist.
                                                  Add another file
                                                  to this gist and
                                                  name it fiddle.js
                                                  and write all you
                                                  JS codes here.
                                                  This code will
                                                  show up under
                                                  Javascript pane
                                                  in fiddle.




Saturday, 3 March 12
Got to gist.github.com and create a new gist.



        This would be
        your JS code in
        fiddle.




Saturday, 3 March 12
Got to gist.github.com and create a new gist.


        fiddle.manifest
        is a description of
        the gist written in
        YAML, the structure
        is compatible with
        the MooTools doc.




Saturday, 3 March 12
Got to gist.github.com and create a new gist.


                                                      fiddle.manifest
                                                      is a description of
                                                      the gist written in
                                                      YAML.
                                                      The content of this
                                                      manifest will show
                                                      up under info tab in
                                                      the fiddle.




Saturday, 3 March 12
Got to gist.github.com and create a new gist.
                                               fiddle.manifest (in YAML format)

                                               name: the title of this code or app
                                               description: description about this code
                                               authors:
                                                 - author 1
                                                 - author 2
                                                 - ...
                                               resources:
                                                 - http://....link to a js file
                                                 - http:// ... link to a css file
                                                 - ...
                                               normalize_css: yes / no




Saturday, 3 March 12
Making the fiddle URL
         After creating a new gist with multiple files, you can easily run it inside a fiddle by using the following api. Just
         enter the URL with the following pattern in your browser and all those files inside the gist will come together in
         one fiddle.




                                                          http://jsfiddle.net/gh/gist/mootools/1.2/606699/

                 http://jsfiddle.net/gh/gist/{framework}/{version}/{gist_id}/




Saturday, 3 March 12
The fiddle URL with extra option
         You can add an extra option to indicate all dependencies related to this gist codes. In order to indicate those
         dependencies use a comma separated list of those dependencies as the following format:




                                http://jsfiddle.net/gh/gist/jquery/1.4.4/dependencies/lint,ui/606699/
                 http://jsfiddle.net/gh/gist/{framework}/{version}/dependencies/{dependencies_list}/{gist_id}/




Saturday, 3 March 12
How to display Fiddle from Gist




Saturday, 3 March 12
How to display Fiddle from Gist




Saturday, 3 March 12
Resources
          http://jsfiddle.net/
          http://doc.jsfiddle.net/
          https://github.com/jsfiddle/jsfiddle-docs-alpha/blob/master/docs/use/gist_read.rst

          https://gist.github.com/606699/
          http://jsfiddle.net/gh/gist/mootools/1.2/606699/


          Created by:
          Mehran Mozaffari @imehr http://mehrjs.com
Saturday, 3 March 12

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 

Kürzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Empfohlen

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Empfohlen (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

How to display_fiddle_from_gist

  • 1. How to display Fiddle from Gist Created by: Mehran Mozaffari @imehr Saturday, 3 March 12
  • 2. How to display Fiddle from Gist Saturday, 3 March 12
  • 3. How to display Fiddle from Gist Saturday, 3 March 12
  • 4. The goal Creating a fiddle on the fly and fill it with some demo codes from a gist and be able to try the code with all library dependencies on Jsfiddle.net. Saturday, 3 March 12
  • 5. A multi files gist, hosted on gist.github.com STEP 1 Saturday, 3 March 12
  • 6. Just enter a URL with a very basic api STEP 2 and then... Saturday, 3 March 12
  • 7. You will get a fresh new fiddle filled up with all codes, coming directly from that gist and ready to try in Jsfiddle. STEP 3 Saturday, 3 March 12
  • 8. Go to gist.github.com and create a new gist. Saturday, 3 March 12
  • 9. Go to gist.github.com and create a new gist. This description field can be anything to explain what this gist is all about. Saturday, 3 March 12
  • 10. Go to gist.github.com and create a new gist. The file names in this gist are important to follow a specific pattern. Saturday, 3 March 12
  • 11. Go to gist.github.com and create a new gist. Allowed file names • fiddle.js • fiddle.html • fiddle.css • fiddle.manifest • fiddle.response.html Saturday, 3 March 12
  • 12. Got to gist.github.com and create a new gist. HTML CSS Allowed file names • fiddle.js INFO AND • fiddle.html RESOURCES • fiddle.css JAVASCRIPT • fiddle.manifest AJAX RESPONSE / • fiddle.response.html PAGE RENDER Saturday, 3 March 12
  • 13. Got to gist.github.com and create a new gist. Allowed file names Write your CSS code here. This code will be used in CSS pane inside the fiddle later on. Saturday, 3 March 12
  • 14. Got to gist.github.com and create a new gist. Click here and add another file to your gist and name it fiddle.html. Saturday, 3 March 12
  • 15. Got to gist.github.com and create a new gist. This code will show up under HTML pane inside the fiddle. Saturday, 3 March 12
  • 16. Got to gist.github.com and create a new gist. Add another file to this gist and name it fiddle.js and write all you JS codes here. This code will show up under Javascript pane in fiddle. Saturday, 3 March 12
  • 17. Got to gist.github.com and create a new gist. This would be your JS code in fiddle. Saturday, 3 March 12
  • 18. Got to gist.github.com and create a new gist. fiddle.manifest is a description of the gist written in YAML, the structure is compatible with the MooTools doc. Saturday, 3 March 12
  • 19. Got to gist.github.com and create a new gist. fiddle.manifest is a description of the gist written in YAML. The content of this manifest will show up under info tab in the fiddle. Saturday, 3 March 12
  • 20. Got to gist.github.com and create a new gist. fiddle.manifest (in YAML format) name: the title of this code or app description: description about this code authors: - author 1 - author 2 - ... resources: - http://....link to a js file - http:// ... link to a css file - ... normalize_css: yes / no Saturday, 3 March 12
  • 21. Making the fiddle URL After creating a new gist with multiple files, you can easily run it inside a fiddle by using the following api. Just enter the URL with the following pattern in your browser and all those files inside the gist will come together in one fiddle. http://jsfiddle.net/gh/gist/mootools/1.2/606699/ http://jsfiddle.net/gh/gist/{framework}/{version}/{gist_id}/ Saturday, 3 March 12
  • 22. The fiddle URL with extra option You can add an extra option to indicate all dependencies related to this gist codes. In order to indicate those dependencies use a comma separated list of those dependencies as the following format: http://jsfiddle.net/gh/gist/jquery/1.4.4/dependencies/lint,ui/606699/ http://jsfiddle.net/gh/gist/{framework}/{version}/dependencies/{dependencies_list}/{gist_id}/ Saturday, 3 March 12
  • 23. How to display Fiddle from Gist Saturday, 3 March 12
  • 24. How to display Fiddle from Gist Saturday, 3 March 12
  • 25. Resources http://jsfiddle.net/ http://doc.jsfiddle.net/ https://github.com/jsfiddle/jsfiddle-docs-alpha/blob/master/docs/use/gist_read.rst https://gist.github.com/606699/ http://jsfiddle.net/gh/gist/mootools/1.2/606699/ Created by: Mehran Mozaffari @imehr http://mehrjs.com Saturday, 3 March 12