#include <stdio.h>
main ()
{
printf("hello world\n");
}
This file contains 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
main() | |
{ | |
printf("hello world\n"); | |
} |
This file contains 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
Jaxer.Includer.load('http://code.jquery.com/jquery-1.8.2.min.js'); | |
Jaxer.Includer.load('https://jquery-json.googlecode.com/files/jquery.json-2.3.min.js'); |
This file contains 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
<style type="text/css"> | |
.gist-meta { | |
display: none !important; | |
visibility: hidden !important; | |
} | |
</style> | |
<link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css" /> | |
<div class="gist gist-syntax"> |
This file contains 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
Jaxer.Includer.load('http://requirejs.org/docs/release/2.1.1/minified/require.js'); | |
Jaxer.Includer.load('http://www.typescriptlang.org//Script/vs/languages/typescript/typescript.js'); | |
var ts = TypeScript; | |
var outfile = { | |
source: '', | |
Write: function(s) { this.source += s; }, | |
WriteLine: function(s) { this.source += s + "\r\n"; }, | |
Close: function() {}, | |
}; | |
var outerr = { |
This file contains 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
function jaxer_markdown (url) { | |
var text = Jaxer.Web.get(url, { as: 'text' }); | |
var data = { text: text, mode: "gfm" }; | |
var html = Jaxer.Web.post("https://api.github.com/markdown", JSON.encode(data)); | |
return(html); | |
} | |
jaxer_markdown.proxy = true; |
This file contains 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 sys = require('sys'), | |
jsdom = require('jsdom'); | |
var document = jsdom.jsdom("<html><head></head><body></body></html>"); | |
var window = document.createWindow(); | |
jsdom.jQueryify(window, "http://code.jquery.com/jquery-1.8.2.js", function(window,$) { | |
$.getJSON("https://api.github.com/gists/3985489?callback=?", | |
function(data) { | |
sys.print(JSON.stringify(data, null, 4) + "\n"); |
This file contains 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 runat="server"> | |
jQuery(function($){ | |
$.getJSON("https://api.github.com/gists/3985489?callback=?", | |
function(data) { | |
$('div#x1').append(JSON.stringify(data, null, 4)); | |
$('div#x2').append(data['data']['files']['test.md']['content']); | |
}); | |
}); | |
</script> | |
<pre> |
This file contains 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 jsdom = require("jsdom").jsdom; | |
var document = jsdom("<html><head></head><body></body></html>"); | |
var window = document.createWindow(); | |
var url = "http://higashida.net/mediawiki/api.php?action=parse&page=Main_Page&format=json&callback=?"; | |
//var url = "http://en.wikipedia.org/w/api.php?action=parse&page=Markdown&format=json&callback=?"; | |
//var url = "https://api.github.com/gists/3985489?callback=?"; | |
jsdom.jQueryify(window, "http://code.jquery.com/jquery-1.8.1.js", function(window,$) { | |
$.ajaxSetup({"error":function(XMLHttpRequest,textStatus, errorThrown) { |
This file contains 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 type="text/javascript"> | |
AJS.toInit(function ($) { | |
$.getJSON("https://api.github.com/gists/3985489?callback=?", | |
function(data) { | |
$('div#x1').append(JSON.stringify(data, null, 4)); | |
$('div#x2').append(data['data']['files']['test.md']['content']); | |
}); | |
}); | |
</script> | |
<pre> |
OlderNewer