Skip to content

Instantly share code, notes, and snippets.

@maxymania
maxymania / hash.c
Last active January 8, 2016 09:45 — forked from tonious/hash.c
A quick hashtable implementation in c.
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;
@maxymania
maxymania / fcgiclient.go
Last active December 20, 2015 20:37 — forked from wofeiwo/fcgiclient.go
// Copyright 2015 Simon Schmidt
// Copyright 2012 Junqing Tan <ivan@mysqlab.net> and The Go Authors
// Use of this source code is governed by a BSD-style
// Part of source code is from Go fcgi package
// Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15
// By: wofeiwo
package fcgiclient