Skip to content

Instantly share code, notes, and snippets.

View cynthiaerdos's full-sized avatar

Cynthia Erdos cynthiaerdos

View GitHub Profile
### 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:
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)];
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>