This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
function checkBelongsTo(installationId, userId, cb) { | |
Installation.findById(installationId, function (err, inst) { | |
cb(err, !err && inst && inst.userId == userId); | |
}); | |
} | |
var ERR_403 = new Error("Forbidden"); | |
ERR_403.status = ERR_403.statusCode = 403; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DEPRICATED | |
# new repository: https://github.com/nullEuro/apply-equalizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* some backtrack magic to find a random path | |
* */ | |
class Point { | |
public $x, $y; | |
function __construct ($x, $y) { | |
$this->x = $x; |