Skip to content

Instantly share code, notes, and snippets.

@ryedin
ryedin / gist:3866362
Created October 10, 2012 15:31 — forked from mnickel/gist:3866194
reference hell
$.Foo = function() {
this.bar = new $.Bar();
this.biz = new $.Biz();
this.bar.setBiz(this.biz);
this.biz.setBar(this.bar);
};
$.Bar = function() {};
function jsonToCSV(json, config)
{
var jsonobject = typeof json != 'object' ? JSON.parse(json) : json;
var str = '';
for (var key in jsonobject) {
var line = '';
var obj = jsonobject[key];
for (var prop in obj) {
@ryedin
ryedin / config.json
Created March 28, 2012 21:00 — forked from adamwlarson/gist:2230448
config file
{
"useAjaxForSystem": true,
"environments": {
"adamdev": {
"host": "ubuntu",
"port": 80
},
var CharacterElement = function(locChar) {
this.x = null;
this.y = null;
this.width = null;
this.dy = null;
this.value = (locChar !== null) ? locChar : "";
this.se_newline = "";
this.characterAttribute = null;
this.bbox = null;
};