Skip to content

Instantly share code, notes, and snippets.

Sean Cribbs seancribbs

Block or report user

Report or block seancribbs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8786092
Undefined symbols for architecture x86_64:
"_N_alloc", referenced from:
___eqc_c_address_of_N_alloc in __eqc_tmp1391428562644481_wrapper-09UJnj.o
___eqc_c_wrapper_N_alloc in __eqc_tmp1391428562644481_wrapper-09UJnj.o
(maybe you meant: ___eqc_c_address_of_N_alloc, ___eqc_c_wrapper_N_alloc )
"_delete_one_or_all", referenced from:
___eqc_c_address_of_delete_one_or_all in __eqc_tmp1391428562644481_wrapper-09UJnj.o
___eqc_c_wrapper_delete_one_or_all in __eqc_tmp1391428562644481_wrapper-09UJnj.o
(maybe you meant: ___eqc_c_wrapper_delete_one_or_all, ___eqc_c_address_of_delete_one_or_all )
"_get_first_eq_node", referenced from:
@seancribbs
seancribbs / legacy.txt
Last active Aug 29, 2015
Places we refer to 'legacy' in riak_core
View legacy.txt
$ ack legacy src
src/riak_core.erl
75: join(riak_core_gossip:legacy_gossip(), node(), Node, false, Auto).
78: legacy_join(Node);
85: %% doesn't define legacy_gossip will be handled
86: %% in standard_join based on seeing a legacy ring.
93: case riak_core_ring:legacy_ring(Ring) of
108: case riak_core_ring:legacy_ring(Ring) of
110: legacy_join(Node);
153:legacy_join(Node) when is_atom(Node) ->
@seancribbs
seancribbs / 00-README.md
Last active Aug 29, 2015
An RSVP-list demo on top of Riak 2.0 Datatypes
View 00-README.md

An RSVP-list demo on top of Riak 2.0 Datatypes

This is a purely in-browser demo of Riak 2.0's sets datatype. The application code uses React.js and jquery.

To get started, make a 5-node devrel cluster of the 2.0 preview using these instructions. After your cluster is built, make a bucket-type for sets:

cd dev/dev1
bin/riak-admin bucket-type create sets '{"props":{"datatype":"set","allow_mult":true}}'
bin/riak-admin bucket-type activate sets
View sanity.hrl
-define(maybe(Bool, Exprs),
if (Bool) -> (Exprs), ok;
true -> ok
end).
View ack.txt
src/riak.erl:183: {error, notfound} ->
src/riak_client.erl:71:%% {error, notfound} |
src/riak_client.erl:105: notfound ->
src/riak_client.erl:106: {error, notfound};
src/riak_client.erl:114:%% {error, notfound} |
src/riak_client.erl:134:%% {error, notfound} |
src/riak_client.erl:148:%% {error, notfound} |
src/riak_client.erl:246:%% {error, notfound} |
src/riak_client.erl:312:%% {error, notfound} |
src/riak_client.erl:323:%% {error, notfound} |
View pizza.md

Okay, here are some of my tips about how I work with the pizza dough. For now, I'd suggest just buying the dough until you're comfortable, then once you've got the basic techniques down you can start experimenting and/or making your own dough. We get ours at Whole Foods (it's about $5/ball, it's 22 oz., and it'll make about three pizzas on the Baking Steel), but you can get it from a grocery store that makes pizzas or a pizza restaurant.. They'll usually sell it to you if you ask for it. I describe my process with the 3-pizza thing in mind.

Setting the stage

When you buy your dough it will usually be cold, and that cold is the enemy of smooth pizza making. You'll need to let the dough come to room temperature: We usually pull out three round plastic Ziploc containers, spray the containers lightly with non-stick kitchen spray, plop the cold dough into the container, then spray a small square of regular Saran wrap lightly with non-stick spray and cover the top of the containers. You want to block out the o

View isotime.erl
isotime({{Y,Mo,D},{H,Mi,S}}) ->
ISO = io_lib:format("~w-~.2.0w-~.2.0wT~.2.0w:~.2.0w:~6.3.0fZ",
[Y, Mo, D, H, Mi, S]),
unicode:characters_to_binary(ISO).
View gist:7dfa846d8b3b33b80f92
Last 10 lines of the build log ( /Users/sean/.cabal/logs/protocol-buffers-2.0.14.log ):
Text/ProtocolBuffers/WireMessage.hs:407:24: Not in scope: ‘typeOf’
Text/ProtocolBuffers/WireMessage.hs:433:77: Not in scope: ‘typeOf’
Text/ProtocolBuffers/WireMessage.hs:436:75: Not in scope: ‘typeOf’
Text/ProtocolBuffers/WireMessage.hs:440:74: Not in scope: ‘typeOf’
View edoc_stats.erl
%% @doc Reports on percentage of modules, functions and types that are
%% documented.
-module(edoc_stats).
-export([file/1, file/2, files/1, files/2, aggregate/1, report/1, report_files/1, report_files/2]).
-include_lib("xmerl/include/xmerl.hrl").
-import(xmerl_xpath, [string/2]).
-define(QUERY_FUNS, [ fun module_has_description/2
, fun functions_have_descriptions/2
, fun types_have_descriptions/2
View erlang.sh
# Erlang switching
export PATH="$HOME/erlang/current/bin:$PATH"
# Detects the current erlang version
erlcur() {
DIR=`ls -lr $HOME/erlang | awk '/current/ { print $NF }'`
echo -n ${DIR##*/}
}
# Switches to the given erlang version using wildcards
You can’t perform that action at this time.