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
Artist: https://twitter.com/mandylauderdale | |
I wouldn't be so alone | |
If my Github followers lived in my home | |
Alex Russell would send a pull request | |
But I'd be too busy | |
Return to San Francisco by nine | |
That guy Brendan Eich, did he see my sign | |
He makes me smile all the time | |
His lines of code would compliment mine |
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
var MAX_DEPTH = 3; | |
var findPath = function (source, target, u2f, visitor) { // u2f = user to friend | |
source = Graph.userToIndex(source); | |
target = Graph.userToIndex(target); | |
var dist = [] | |
var prev = [] | |
var queue = [] | |
var seen = [] | |