I hereby claim:
- I am mertcetin on github.
- I am mertcetin (https://keybase.io/mertcetin) on keybase.
- I have a public key ASD_0AHhxeywDCIUWIjWDJ6vxnhR2_ILuHObMs1FSiqdlwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function Event() { | |
var subscribers = []; | |
this.subscribe = function(args) { | |
for (var i=0; i < arguments.length; i++) { | |
if (typeof(arguments[i]) === 'function'){ | |
subscribers.push(arguments[i]); | |
} | |
} | |
}; |
function validateBattlefield(field) { | |
var count = [0,0,0,0], coord = [[],[],[],[]], hash = {}, i; | |
var transposedField = Object.keys(field[0]).map(function(c) { | |
return field.map(function(r) {return r[c];}); | |
}); // transposes field matrix for easy column traversal | |
for (i = 0; i < 10; i++) { | |
identifyRow(field[i].join(''), false, coord, i); | |
identifyRow(transposedField[i].join(''), true, coord, i); |
// Four-space, wrap at 120. Works with very long function names, survives | |
// renaming without reindenting, low on space. | |
goog.foo.bar.doThingThatIsVeryDifficultToExplain = function( | |
veryDescriptiveArgumentNumberOne, veryDescriptiveArgumentTwo, | |
tableModelEventHandlerProxy, artichokeDescriptorAdapterIterator) { | |
// ... | |
}; | |
// Four-space, one argument per line. Works with long function names, | |
// survives renaming, and emphasizes each argument. |