Skip to content

Instantly share code, notes, and snippets.

/// Converts empty strings as optional values
type MaybeConverter<'t>() =
inherit JsonIsomorphism<'t option, string>()
override __.Pickle v = TypeSafeEnum.toString v
override __.UnPickle json = TypeSafeEnum.tryParse<'t> json
-module(frequency).
-export([start/0,allocate/0,deallocate/1,stop/0]).
-export([init/0]).
-compile(export_all).
%% Usage:
%% SupervisorPid = spawn(frequency, super, []).
%% frequency:run_clients(7, frequency).
%% ... see clients working ...
%% ... using observer:start() find and kill frequency:loop()
#include <stdio.h>
#include <stdlib.h>
#define MAX_NUM 20000
int main() {
void* array[MAX_NUM];
printf ("Started fresh...\n");
getchar();