Skip to content

Instantly share code, notes, and snippets.


Sean Cribbs seancribbs

View GitHub Profile
View adapter.js
fetchBatchSize: 25,
findMany: function(store, type, ids, owner){
var root = type.typeKey,
batchSize = this.get('fetchBatchSize') || ids.length,
rest = ids,
promises = [],
key = this.pathForType(root);
View -
$ ./riak_test -t validate_nval_etc -c rtdev
Tests to run: [{validate_nval_etc,[{id,-1},
13:52:55.013 [info] Application lager started on node nonode@nohost
13:52:55.014 [info] These modules are not runnable tests: []
13:52:55.060 [info] Skipping cover, no modules included
13:52:55.544 [info] Stopped Node... /Users/sean/rt/riak/riak-1.4.6/dev/dev1/bin/riak stop ~ wasn't running.
13:52:55.587 [info] Stopped Node... /Users/sean/rt/riak/current/dev/dev1/bin/riak stop ~ wasn't running.
View dialyzer.txt
==> neotoma (compile)
Compiled src/neotoma_parse.erl
Checking whether the PLT neotoma.plt is up-to-date... yes
Proceeding with analysis...
peg_includes.hrl:85: The created fun has no local return
peg_includes.hrl:86: Fun application will fail since P :: none() is not a function of arity 2
peg_includes.hrl:201: The created fun has no local return
neotoma.erl:52: Guard test not(is_atom(ModName::atom())) can never succeed
neotoma.erl:124: Function bootstrap/0 has no local return
done in 0m2.41s
View console.log
2013-12-12 15:50:39.185 [info] <0.7.0> Application lager started on node 'dev1@'
2013-12-12 15:50:39.211 [info] <0.7.0> Application sasl started on node 'dev1@'
2013-12-12 15:50:39.212 [info] <0.7.0> Application asn1 started on node 'dev1@'
2013-12-12 15:50:39.219 [info] <0.7.0> Application crypto started on node 'dev1@'
2013-12-12 15:50:39.219 [info] <0.7.0> Application public_key started on node 'dev1@'
2013-12-12 15:50:39.233 [info] <0.7.0> Application ssl started on node 'dev1@'
2013-12-12 15:50:39.240 [info] <0.7.0> Application riak_sysmon started on node 'dev1@'
2013-12-12 15:50:39.255 [info] <0.7.0> Application os_mon started on node 'dev1@'
2013-12-12 15:50:39.271 [info] <0.7.0> Application runtime_tools started on node 'dev1@'
2013-12-12 15:50:39.320 [info] <0.7.0> Application erlang_js started on node 'dev1@'
View hashdict.erl
-define(ordered_threshold, 8).
-record(ordered, { size = 0, bucket= [] }).
-define(expand_load, 5).
-define(contract_load, 2).
-define(node_bitmap, 2#111).
-define(node_shift, 3).
-define(node_size, 8).
View init.el
(defun erlang-insert-binary ()
"Inserts a binary string into an Erlang buffer and places the
point between the quotes."
(insert "<<\"\">>")
(backward-char 3)
(define-key erlang-mode-map (kbd "C-c b") 'erlang-insert-binary)
View gist:7453161
gcc -Werror=return-type -m64 -g -O3 -fomit-frame-pointer -I/Users/sean/dev/otp/erts/x86_64-apple-darwin12.5.0 -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_GIT_VERSION="\"a1cad4f\"" -Ix86_64-apple-darwin12.5.0/opt/smp -Ibeam -Isys/unix -Isys/common -Ix86_64-apple-darwin12.5.0 -Izlib -Ipcre -Ihipe -I../include -I../include/x86_64-apple-darwin12.5.0 -I../include/internal -I../include/internal/x86_64-apple-darwin12.5.0 -c beam/beam_emu.c -o obj/x86_64-apple-darwin12.5.0/opt/smp/beam_emu.o
beam/beam_emu.c:1145:32: error: use of undeclared label 'lb_hipe_trap_resume'
static void* opcodes[] = { DEFINE_OPCODES };
x86_64-apple-darwin12.5.0/opt/smp/beam_opcodes.h:1065:3: note: expanded from macro 'DEFINE_OPCODES'
&&lb_hipe_trap_resume, \
beam/beam_emu.c:1145:32: error: use of undeclared label 'lb_hipe_trap_return'
View gist:7215054
Erlang R16B02 (erts-5.10.3) [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false] [dtrace]
Eshell V5.10.3 (abort with ^G)
1> {ok, Tokens, Line} = erl_scan:string("-type foo() :: any().").
View gist:6470138
## Default ring creation size. Make sure it is a power of 2,
## e.g. 16, 32, 64, 128, 256, 512 etc
## ring_size = 64
## enable active anti-entropy subsystem
anti_entropy = on
## location of the console log
log.console.file = ./log/console.log
seancribbs /
Last active Dec 22, 2015
WIP Client-side Riak CRDT API for Python
from collections import MutableSet, MutableMapping, Mapping
class DataType(object):
def __init__(self, value=None, context=None):
if value is not None:
self.value = value
if context:
self.context = context
You can’t perform that action at this time.