Skip to content

Instantly share code, notes, and snippets.

@PirosB3
PirosB3 / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@PirosB3
PirosB3 / foo.plain
Last active August 29, 2015 14:07 — forked from loic/foo.plain
concrete (False means virtual)
editable (for forms)
managed (ignored by migrations if True)
is_relation
is_forward
one_to_one
one_to_maby
many_to_one
many_to_many
@PirosB3
PirosB3 / Listener.c
Last active December 26, 2015 16:29 — forked from anonymous/gist:7180578
#include <stdio.h>
#include "zmq.h"
int main() {
void *context = zmq_ctx_new();
void *in_sock = zmq_socket(context, ZMQ_SUB);
zmq_connect(in_sock, "tcp://127.0.0.1:8081");
zmq_setsockopt(in_sock, ZMQ_SUBSCRIBE, "[TICKER]", 8 * sizeof(char));
printf("Entering loop mode..\n");
printf("Listening for [CHATTR] on tcp://127.0.0.1/8081\n");
// GRID DEFININTION
dg 1,1, INPUT_NODE_TYPE
mg Input
mg Bias
dg 1,2, STANDARD_NODE_TYPE
mg Output
dg 1,1, LINEAR_NODE_TYPE
mg Classification