Skip to content

Instantly share code, notes, and snippets.

kjdev

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
kjdev / snapshot.el
Created Oct 4, 2012
snapshot scripts
View snapshot.el
;;; snapshot
(defun snapshot ()
(interactive)
(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
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://127.0.0.1:5570");
xs_msg_t msg;
You can’t perform that action at this time.