Skip to content

Instantly share code, notes, and snippets.

View argv0's full-sized avatar

Andy Gross argv0

View GitHub Profile
==> riakc (eunit)
=INFO REPORT==== 20-Apr-2010::08:42:05 ===
Protocol: "inet_tcp": register error: {{badmatch,{error,econnrefused}},
[{inet_tcp_dist,listen,1},
{net_kernel,start_protos,4},
{net_kernel,start_protos,3},
{net_kernel,init_node,2},
{net_kernel,init,1},
{gen_server,init_it,6},
#define RC_EXPORT __attribute__((visibility ("default")))
// connection handle opaque type
struct riak_connection;
typedef struct riak_connection* riak_connection_handle;
typedef struct riak_data {
void *data;
size_t size;
} riak_data;
-module(reg_eqc).
-include_lib("eqc/include/eqc.hrl").
-include_lib("eqc/include/eqc_statem.hrl").
-compile(export_all).
% Model of states
-define(names,[a,b,c,d]).
project
project/src %% .erl files
project/include %% .hrl files
project/ebin %% generated beam files and .app file
project/priv %% scripts, miscellaneous stuff
project/c_src %% c NIFs and linked-in drivers
ring_trans(Fun, Args) ->
gen_server2:call(?MODULE, {ring_trans, Fun, Args}).
...
handle_call({ring_trans, Fun, Args}, _From, State) ->
{ok, Ring} = get_my_ring(),
case catch Fun(Ring, Args) of
{new_ring, NewRing} ->
set_my_ring(NewRing),
{reply, {ok, NewRing}, State};
#ifndef ERL_NIF_COMPAT_H_
#define ERL_NIF_COMPAT_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "erl_nif.h"
([email protected])1> {ok, Ref} = ebloom:new(5,0.01, 123).
{ok,<<>>}
([email protected])2> ebloom:elements(Ref).
0
([email protected])3> ebloom:insert(Ref, <<"foo">>).
ok
([email protected])4> ebloom:insert(Ref, <<"bar">>).
ok
([email protected])5> ebloom:insert(Ref, <<"baz">>).
ok
-------------------------
Riak 0.13.0 Release Notes
-------------------------
#81 Support large uploads (chunk or stream automagically)
#446 One Erlang App Per Repo
Enhancements
------------
README
THANKS
LICENSE
hooks
hooks/post-commit
hooks/pre-commit
mapreduce/erlang
mapreduce/js
%% -------------------------------------------------------------------
%%
%% bounded_queue: a size-bounded FIFO
%%
%% Copyright (c) 2007-2010 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obtain
%% a copy of the License at