Issue with manipulating base href and jQuery UI making ajax calls to the new document.baseURI.
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 http = require('http'), | |
httpProxy = require('http-proxy'), | |
url = require('url'); | |
// Create your proxy server | |
httpProxy.createServer(function(req, res, proxy){ | |
var baseUrl = url.parse(req.url, true), | |
query = baseUrl.query, | |
server = !!query.url ? query.url.replace(/http:\/\/([^:\/]+).*/i,function(url,server){return server;}) : '', | |
port = !!query.url ? query.url.match(/:(\d+)/) : 80; |
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
//Copy to URL bar: | |
javascript:var s=document.createElement("script");s.src="https://github.com/mrdoob/stats.js/raw/master/build/Stats.js",document.body.appendChild(s),s.onload=function(){var a=new Stats,b=a.domElement.style;b.position="fixed",b.left="0px",b.top="0px",document.body.appendChild(a.domElement),setInterval(a.update,1e3/60)} | |
//Source | |
var s = document.createElement('script'); | |
s.src = 'https://github.com/mrdoob/stats.js/raw/master/build/Stats.js'; | |
document.body.appendChild(s); | |
s.onload = function() { | |
var stats = new Stats(), |
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
//Wait for relevant code bits to load before starting any tests | |
define(['core.js'], function( core ) { | |
module("Core Tests"); | |
test("Test core methods", function(){ | |
expect(2); | |
equals( 1, 1, "A trivial test"); | |
ok( true, "Another trivial test"); | |
}); |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body{ | |
font-family: 'HelveticaRegular',arial,sans-serif; | |
} | |
</style> | |
<script id="shader-fs" type="x-shader/x-fragment"> |
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 aj( url ){ | |
return $.ajax({ | |
url: url, | |
success: function( data ){ | |
} | |
); | |
} | |
function resolve( args ){ |
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 i,l,death, | |
taxes = [ | |
{ | |
value: 0, | |
rate: .1 | |
}, | |
{ | |
value: 5070, | |
rate: .14 | |
}, |
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
/* | |
* Fork & Refactor of https://gist.github.com/246761 | |
* -> Credit: Noah Sloan <http://noahsloan.com> | |
*/ | |
/** | |
* Simple webserver with logging. Serves whatever files are reachable from | |
* the directory where node is running. Supports Windows port of node. | |
*/ | |
var fs = require('fs'), |
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
/**********************************************/ | |
/* | |
/* Solarized Dark Skin by Mark Osborne - 2011 | |
/* | |
/* Based on IR_Black Skin by Ben Truyman: | |
/* https://gist.github.com/1245727 | |
/* | |
/* and Todd Werth's IR_Black: | |
/* http://blog.toddwerth.com/entries/2 | |
/* |
OlderNewer