Instantly share code, notes, and snippets.

View contiguous array
/**
* Collection that stores the number of elements and the actual elements
* in a contiguous chunk of memory, making it ideal for a number of use cases.
*/
template<typename T>
class Array final {
private:
bool ownsData;
void *data;
View fileserver.js
//
// Very simple Node.js file server by Timur Kristóf
//
var http = require('http');
var url = require('url');
var fs = require('fs');
var mime = require('mime');
// Figure out port number