This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ApacheLogRecord struct { | |
http.ResponseWriter | |
ip string | |
time time.Time | |
method, uri, protocol string | |
status int | |
responseBytes int64 | |
elapsedTime time.Duration | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
/* http://stackoverflow.com/q/12790337/274261 */ | |
/* Generates random DAGs. The key is to 'rank' the nodes, and | |
only draw edges from lower ranked nodes to higher ranked ones. */ | |
/* Nodes/Rank: How 'fat' the DAG should be. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A reference implementation of a custom Couchbase session handler. | |
*/ | |
class CouchbaseSessionHandler implements SessionHandlerInterface { | |
/** | |
* Holds the Couchbase connection. | |
*/ |
NewerOlder