Skip to content

Instantly share code, notes, and snippets.

@max-mapper
Created August 20, 2012 06:29
Show Gist options
  • Save max-mapper/3401560 to your computer and use it in GitHub Desktop.
Save max-mapper/3401560 to your computer and use it in GitHub Desktop.
official semicolon style of @maxogden
function toCSV = function(table, cb) {
;;;;var cmd = spawn('mdb-export', [this.file, table])
;;;;cmd.stdout.pipe(concat(function(err, out) {
;;;;;;;;;;;;if (err) return cb(err)
;;;;;;;;;;;;if (!out) return cb('no output')
;;;;;;;;;;;;cb(false, out.toString())
;;;;;;;;}))
}
@cowboy
Copy link

cowboy commented Jan 23, 2013

How would you indent this code example?

Might I suggest:

var magicWords = [ "abracadabra"
/*;;;;;;;;;;;;;*/, "gesundheit"
/*;;;;;;;;;;;;;*/, "ventrilo"
/*;;;;;;;;;;;;;*/]
/**/, spells = { "fireball" : function () { setOnFire() }
/*;;;;;;;;;;;*/, "water" : function () { putOut() }
/*;;;;;;;;;;;*/}
/**/, a = 1
/**/, b = "abc"
/**/, etc
/**/, somethingElse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment