Skip to content

Instantly share code, notes, and snippets.


Juan Eugenio Abadie whoan

Block or report user

Report or block whoan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View depth-first-search.cpp
class DFS {
enum Method {
PreOrder, InOrder, PostOrder
} method;
enum Direction {
LeftToRight, RightToLeft
} direction;
template <typename TreeNode>
whoan / relation.php
Created Dec 2, 2016
Query constraints for an eager loading query
View relation.php
// suppose `brothers` has a user_id foreign key
class User extends Model
public function brothers() {
return $this->hasMany('App\Brother');
// bad way
You can’t perform that action at this time.