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
| /* | |
| @name Dug.js — A JSONP to HTML Script | |
| @author Rogie King <[email protected]> | |
| @version 1.0 | |
| @license WTFPL — http://en.wikipedia.org/wiki/WTFPL | |
| @donate My paypal email is [email protected] if you want to buy me a brew. | |
| */ |
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
| <!DOCTYPE html> | |
| <!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]--> | |
| <html class="no-js" lang="en" > | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Foundation 5</title> | |
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
| // http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html | |
| jQuery.githubUserRepositories = function(username, callback) { | |
| jQuery.getJSON("https://api.github.com/users/" + username + "/repos?callback=?", callback); | |
| } | |
| jQuery.fn.loadRepositores = function(username) { | |
| this.html("<span>Querying GitHub for repositories...</span>"); | |
| var target = this; |
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
| // Create a JSONP wrapper | |
| function executeYQL(yql, callbackFuncName) { | |
| var url = "http://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent(yql) + "&env=store://datatables.org/alltableswithkeys&format=json&callback="+callbackFuncName; | |
| var head = document.getElementsByTagName('head')[0]; | |
| var script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = url; | |
| head.appendChild(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
| // http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html | |
| jQuery.githubUser = function(username, callback) { | |
| jQuery.getJSON("http://github.com/api/v1/json/" + username + "?callback=?", callback); | |
| } | |
| jQuery.fn.loadRepositores = function(username) { | |
| this.html("<span>Querying GitHub for repositories...</span>"); | |
| var target = this; |
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 $List = $('#list'), | |
| sUser ='potherca', | |
| sUrl = 'https://api.github.com/users/' + sUser + '/gists' | |
| ; | |
| $.ajax({ | |
| dataType: "json", | |
| url: sUrl, | |
| success: function(p_oData){ | |
| $.each(p_oData, function(p_iIndex, p_oRepo){ |
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 HTMLPreview = { | |
| content: '', | |
| previewform: document.getElementById('previewform'), | |
| file: function() { | |
| return location.search.substring(1); //Get everything after the ? | |
| }, |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>How to Parse a JSON file using jQuery</title> | |
| <style> | |
| body{ | |
| text-align: center; | |
| font-family: arial; |
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
| <script src="//cdn.jsdelivr.net/g/[email protected](addon/comment/comment.js+addon/display/fullscreen.js+addon/display/placeholder.js+addon/edit/closebrackets.js+addon/edit/closetag.js+addon/edit/continuelist.js+addon/edit/matchbrackets.js+addon/edit/matchtags.js+addon/edit/trailingspace.js+addon/fold/foldgutter.js+addon/hint/anyword-hint.js+addon/hint/css-hint.js+addon/hint/html-hint.js+addon/hint/javascript-hint.js+addon/hint/show-hint.js+addon/hint/sql-hint.js+addon/hint/xml-hint.js+addon/lint/css-lint.js+addon/lint/javascript-lint.js+addon/lint/json-lint.js+addon/lint/lint.js+addon/lint/yaml-lint.js+addon/merge/merge.js+addon/mode/loadmode.js+addon/mode/multiplex.js+addon/mode/overlay.js+addon/runmode/colorize.js+addon/runmode/runmode-standalone.js+addon/runmode/runmode.js+addon/scroll/scrollpastend.js+addon/search/match-highlighter.js+addon/search/search.js+addon/search/searchcursor.js+addon/selection/active-line.js+addon/selection/mark-selection.js+addon/tern/tern.js+codemirror.js+codemirror.min.js+keyma |
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
| <!doctype html> | |
| <html><head> | |
| <title>How to Parse a JSON file using jQuery</title> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | |
| <style> | |
| body { text-align: center; font-family: arial; } | |
| .button { margin:20px; font-size:16px; font-weight: bold; padding:5px 10px; } | |
| </style> | |
| </head><body> | |
| <a href="//api.jsdelivr.com/v1/jsdelivr/libraries/lodash?fields=lastversion,name" target="_blank">Open JSON file</a><br /> |