Skip to content

Instantly share code, notes, and snippets.

info: Creating snapshot 0.0.0-2
info Uploading: [=============================] 99%
info: Updating app nodejs
info: Activating snapshot 0.0.0-2 for nodejs
info: Starting app nodejs
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: socket hang up
error: at createHangUpError (http.js:1264:15)
info: Creating snapshot 0.0.0-1
info Uploading: [=========================== ] 94%
info: Updating app nodejs
info: Activating snapshot 0.0.0-1 for nodejs
info: Starting app nodejs
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error:
error: There was an error while attempting to start the app
error: Error spawning drone
{
"name": "nodejs",
"subdomain": "jayfresh.nodejs",
"scripts": {
"start": "server.js"
},
"version": "0.0.0-1",
"engines": {
"node": "0.8.x"
},
@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
@jayfresh
jayfresh / gist:fe8416ddce15b2c5038b
Last active August 29, 2015 14:23
hbs-utils using vinyl-fs for the watch method
// based on https://github.com/dpolivy/hbs-utils/blob/master/lib/hbs-utils.js
// modified to use vinyl-fs to watch files so it works with docker-mounted Windows volumes (possibly NFS)
var fs = require('fs'),
path = require('path'),
walk = require('../../node_modules/hbs-utils/node_modules/walk').walk,
watch = require('vinyl-fs').watch; // instead of node-watch
// Precompile a partial
var precompilePartialHelper = function(handlebars, partial) {