Skip to content

Instantly share code, notes, and snippets.

function AStar(v1, v2){
function route(v1, v2){
if (parents[v2] != 'NONE'){
route(v1, parents[v2])
}
path.push(v2)
}
parents = {}
searched = []
fcost = {}
[
{
"keys": ["ctrl+r"], "command": "build",
"context": [{ "key": "selector", "operator": "equal", "operand": "source.pde" }]
},
{
"keys": ["ctrl+shift+r"], "command": "build",
"args": {"variant": "Run sketch fullscreen"},
"context": [{ "key": "selector", "operator": "equal", "operand": "source.pde" }]
},