Skip to content

Instantly share code, notes, and snippets.

@jayfresh
jayfresh / index.html
Created September 6, 2012 18:55
basic bar viz
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Basic</title>
<script src="http://d3js.org/d3.v2.js"></script>
<script src="jshbrdly_days.json"></script>
<style type="text/css">
</style>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Partition - Sunburst</title>
<script src="http://d3js.org/d3.v2.js"></script>
<style type="text/css">
path {
stroke: #fff;
diff --git a/socket.io.js b/socket.io.js
index dfd777a..6185082 100644
--- a/socket.io.js
+++ b/socket.io.js
@@ -329,6 +329,12 @@ if (typeof window != 'undefined') this.io.setPath('/socket.io/');
XHR.prototype._request = function(url, method, multipart){
var req = request(this.base._isXDomain());
if (multipart) req.multipart = true;
+
+ // JRL: adding this to enable cross-browser XHR in FF
system.use("com.joyent.Sammy");
POST('/eval', function() {
/* get q like this because request.body doesn't correctly collect parameters with '+' characters - they get converted to ' ' */
var q = decodeURIComponent(this.request.content.split('=')[1].replace(/\+/g," "));
var func;
eval('func = function() { '+q+'};');
var res = func();
if(!res) {
res = "no return value";
# in userbag.py:
def tiddler_get(self, tiddler):
store = self.main_store
username = tiddler.title
user = User(username)
user = store.get(user)
userTiddler = Tiddler(username)
userTiddler.bag = self.environ['tiddlyweb.config']['userbag_bag']
userTiddler = store.get(userTiddler)
[submodule "wireit"]
path = wireit
url = git://github.com/neyric/wireit.git