Skip to content

Instantly share code, notes, and snippets.

View olliahonen's full-sized avatar
😄

Olli Ahonen olliahonen

😄
View GitHub Profile
@olliahonen
olliahonen / heippa.js
Last active September 20, 2016 14:34
Webtask try-out
var kukke = function (ctx, cb) {
ctx.storage.get(function (error, data) {
if (error) return cb(error);
var a = data || 0;
a++;
ctx.storage.set(a, function (error) {
if (error) return cb(error);
var msg = 'Hello, you are viewer number ' + a
cb(null, {
"message": msg,