Skip to content

Instantly share code, notes, and snippets.

View Mobilpadde's full-sized avatar
😻

Mads B. Cordes Mobilpadde

😻
View GitHub Profile
const express = require("express");
const app = express();
app.get("/", (req, res) => {
res.render("index.pug");
});
app.listen(3000);
({
Next(snake: Snake, snakeApi: SnakeApi): Action {
return function(views) {
const directions = ['up', 'down', 'right', 'left'];
const treatMatch = views.find(v => v.contains == 'treat');
if (treatMatch) {
return treatMatch;
}

Keybase proof

I hereby claim:

  • I am Mobilpadde on github.
  • I am mobilpadde (https://keybase.io/mobilpadde) on keybase.
  • I have a public key whose fingerprint is 5A35 0FB5 1A5A B152 4572 008E 2217 72FE 3D67 3AC8

To claim this, I am signing this object:

var Ball = function Ball() {
this.loc = createVector(width / 2, height / 2);
this.vel = createVector();
this.acc = createVector();
this.col = color(random(55, 200));
this.sz = random(10, 25);
this.mass = this.sz * 1.5;
}