Skip to content

Instantly share code, notes, and snippets.

@kongelaks
kongelaks / gist:4539387
Created January 15, 2013 15:22
get distribution of array values in a postgres array field
select count(*), unnest("FIELD_NAME") as field from "TABLE" group by field;
@kongelaks
kongelaks / .emacs
Created August 6, 2012 21:11
Emacs Config File
()
@kongelaks
kongelaks / js2-evil-example.js
Created August 6, 2012 20:28
js2-mode / evil bug
// original js code
var path = {};
var tmp = path.join('log');
var abcd = 'str';
var f = function(somearg) {
return somearg;
};
// command set 1, performed in the default js mode
// ci(