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
### Keybase proof | |
I hereby claim: | |
* I am rerdos on github. | |
* I am rerdos (https://keybase.io/rerdos) on keybase. | |
* I have a public key ASBg0Kbzf9Rp6eU35CEv0szao03OUtpfrwzCBzxvd5Atcgo | |
To claim this, I am signing this object: |
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
console.log(getGraph(20)); | |
function getGraph(stepNumber) { | |
var array = []; | |
for (var i = 0; i < stepNumber + 1; i++) { | |
array.push(getCoordinate(i)); | |
} | |
function getCoordinate(step) { | |
var stepCalc = step % 4; | |
if (!stepCalc) { | |
return [-1 * (step / 4), -1 * (step / 4)]; |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |