Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block kjdev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kjdev / snapshot.el
Created Oct 4, 2012
snapshot scripts
View snapshot.el
;;; snapshot
(defun snapshot ()
(let ((msg (read-from-minibuffer "comment: ")))
(if (> (length msg) 0)
(shell-command (concat "~/bin/snapshot -m \"" msg "\" " (buffer-file-name)))
(shell-command (concat "~/bin/snapshot " (buffer-file-name))))))
kjdev / xs-client.c
Created Aug 23, 2012
ZeroMQ and Crossroads I/O
View xs-client.c
/* Crossroad I/O Client */
#include "xs/xs.h"
#include <string.h>
int main(int argc, char **argv)
void *ctx = xs_init();
void *backend = xs_socket(ctx, XS_DEALER);
//xs_bind (backend, "ipc://backend");
xs_bind (backend, "tcp://");
xs_msg_t msg;
You can’t perform that action at this time.