Skip to content

Instantly share code, notes, and snippets.

@myszek123
myszek123 / xmonad.hs
Created October 17, 2011 07:39 — forked from btran/xmonad.hs
basic xmonad on ubuntu 11.10 oneiric ocelot, using gnome-classic
# Based off of http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Unity_2D
#
# /usr/share/xsessions/xmonad.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png
@myszek123
myszek123 / echoHttpRequest.js
Last active September 16, 2015 14:26 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
console.log("Console messages are sent to /logs");
console.log(hook.params);
console.log(hook.req.path);
console.log(hook.req.method);
@myszek123
myszek123 / datastoreExample.js
Last active September 16, 2015 14:58 — forked from Marak/datastoreExample.js
hook.io example microservice for using hook.io's cloud datastore API
module['exports'] = function datastoreExample (hook) {
var res = hook.res,
req = hook.req,
store = hook.datastore;
if (hook.params.ddd) {
store.set('mykey', { foo: hook.params.ddd }, function(err, result){
if (err) { return res.end(err.message); }
return res.end("ok");
});
} else {