Skip to content

Instantly share code, notes, and snippets.

HarryR / redis-parser.rl
Created January 2, 2012 16:50
Redis server-side protocol parser for Ragel
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
machine redis_parser;
action reset_line {
ryin /
Last active April 23, 2024 01:06
bash script for installing tmux without root access
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
thigm85 / multi_class_neural_netwrok_diagram
Created June 11, 2013 20:04
Graphviz script to draw a multi-class neural network diagram. Copy this to a `file.txt` file and then run `dot -Tpng -O file.txt` from command-line to get a .png figure with the diagram.
digraph G {
node [label=""];
subgraph cluster_0 {