Skip to content

Instantly share code, notes, and snippets.

View frankbaele's full-sized avatar

Frank frankbaele

View GitHub Profile
[user]
# Credentials.
name = Foo Bar
email = [email protected]
drupal = $(whoami)
[credential]
# Save passwords in ~/.git-credentials.
helper = store
/**
* A* (A-Star) Pathfinding Algorithm in JavaScript
* @author Matthew Trost
* @license Creative Commons Attribution-ShareAlike 3.0 Unported License
* @datepublished December 2010
*/
function astar (map, heuristic, cutCorners) {
var listOpen = [];
var listClosed = [];