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 Vector2(x, y) { | |
this.x = (x === undefined) ? 0 : x; | |
this.y = (y === undefined) ? 0 : y; | |
} | |
Vector2.prototype = { | |
set: function(x, y) { | |
this.x = x || 0; | |
this.y = y || 0; | |
}, |
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
# ngrok should be running | |
# replace http with https at the end if needed | |
# based on: https://gist.github.com/rjz/af40158c529d7c407420fc0de490758b | |
echo $(curl -s localhost:4040/inspect/http | grep -oP 'window.common[^;]+' | sed 's/^[^\(]*("//' | sed 's/")\s*$//' | sed 's/\\"/"/g') | jq -r ".Session.Tunnels | values | map(.URL) | .[]" | grep "^http:" |