Skip to content

Instantly share code, notes, and snippets.

View jorgebay's full-sized avatar

Jorge Bay jorgebay

View GitHub Profile
@jorgebay
jorgebay / udt-clr-type
Created August 11, 2014 14:44
udt-clr-type
public class Address
{
public string Street { get; set; }
public string City { get; set; }
public int Zip { get; set; }
}
@jorgebay
jorgebay / udt-cql
Last active August 29, 2015 14:05
UDTs in C# driver
CREATE TYPE address (
street text,
city text,
zip int);
@jorgebay
jorgebay / http_request.c
Created May 22, 2013 13:45
Haywire request without using a response struct
#include <stdio.h>
#include "haywire.h"
#include "http_request.h"
#include "http_parser.h"
#include "http_server.h"
#include "http_request_context.h"
#include "trie/radix.h"
#include "trie/route_compare_method.h"
#define CRLF "\r\n"