Skip to content

Instantly share code, notes, and snippets.

View chillax's full-sized avatar

Joonas Korhonen chillax

  • Jyväskylä, Finland
  • 18:31 (UTC +03:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am chillax on github.
  • I am chillax (https://keybase.io/chillax) on keybase.
  • I have a public key whose fingerprint is C510 4DDA E03F D59A F365 F9A8 DEC8 6722 6464 4D36

To claim this, I am signing this object:

@chillax
chillax / echo.js
Created August 5, 2014 07:54
Express.js echo server with CORS support
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json())
app.all('/', function(req, res) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Content-Type');
res.send(req.body);
/*
* playermovement.js
*/
#pragma strict
public var speed:float = 1.0;
function Update () {