Skip to content

Instantly share code, notes, and snippets.

#include <errno.h> // for errno
#include <fcntl.h> // for O_RDONLY
#include <stdio.h> // for fprintf()
#include <stdlib.h> // for EXIT_SUCCESS
#include <string.h> // for strerror()
#include <sys/event.h> // for kqueue() etc.
#include <unistd.h> // for close()
#include <CoreServices/CoreServices.h>
void mycallback(
@sl0ki
sl0ki / LocalStorage Wrapper
Last active August 29, 2015 14:18
JS LocalStorage Wrapper
/*
* Local Storage wrapper
*/
var LStore = {
set: function(key, value) {
var rec = {
value: value,
updated: new Date().getTime()
};