Skip to content

Instantly share code, notes, and snippets.

@FrozenCow
FrozenCow / gist:5085195
Created March 4, 2013 20:10
Make a public pad on https://etherpad.mozilla.org/ . Open your developer console and paste the code into the Javascript evaluator. (You might need to enable popups.) A window will show where Javascript (that is in your pad) will be executed when you add/remove lines in your pad. Let someone else do the same on your pad, so you can collaborativel…
(function() {
var targetWindow = window.open(null,null,'resizable=yes,scrollbars=yes,status=yes');
/*var iframe = document.createElement('iframe');
iframe.style.position = 'absolute';
iframe.style.zIndex = 1000;
iframe.style.left = 0;
iframe.width = '300px';
iframe.height = '300px';
// For proxying webserver through aspx.
url: {
configuration: 'up.aspx?path=configuration',
update: 'up.aspx?path=world/{world}/{timestamp}',
sendmessage: 'up.aspx?path=sendmessage'
},
<%@ Page Language="C#" %>
<script runat="server" language="C#">
public void Page_Load(object sender, EventArgs e)
{
try
{
string path = Request.Params["path"];
System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost:8123/up/" + path);
request.Method = Request.HttpMethod;
request.ContentType = Request.ContentType;