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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
class Experiment | |
{ | |
//ErrorsFor takes a hayStack, a bunch of needles, and is supposed to invoke errorMessage generator for everything | |
//in the haystack that matches a certain needle. As an excersice, i've been trying out all the different ways | |
//to write it, and evaluate for clarity, conciceness, readability by others, readability by me. | |
// |
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
// TemplateTester.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
template<class T> struct Converter {}; | |
struct TheMagicTypeToFind {}; | |
struct MyConverter : Converter<TheMagicTypeToFind> //I want to store the magic type here |
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 "../../lib/haywire/lib/libuv/include/uv.h" | |
#include "haywire.h" | |
#include "dazzle.h" | |
#include "http_server.h" | |
namespace dazzle { | |
HttpServer::HttpServer(Database* database) | |
{ | |
this->database = database; |
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
/* | |
For some reason the memory consumed in ReadFile() isn't released | |
when getchar() in main() is hit. Why isn't the scope of the stack releasing it? | |
Also, I don't know why the output is wrong. Here is the expected and actual output. | |
EWAHBoolArray code I am using can be found here: | |
https://github.com/lemire/EWAHBoolArray | |
This code is indexing the year column. |