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())
;;;;;;;;}))
}
@azer
Copy link

azer commented Aug 20, 2012

stahp

@d1ffuz0r
Copy link

:nice:

@ecto
Copy link

ecto commented Aug 20, 2012

;;;;;;undefined = void(
:shipit:
);;;

@dominictarr
Copy link

why are you indenting by 4 semicolons? you a moron

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')
;;;;;auth(out, function (err, token) {
;;;;;;;;if(err)
;;;;;;;;;;;;;throw err
;;;;;;;;cb(false, out.toString())
;;;;;})
;;;}))
}

it's much more elegant to indent according to the Fibonacci sequence.

@built
Copy link

built commented Aug 20, 2012

Have we learned nothing from Python?

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