I hereby claim:
- I am dergraf on github.
- I am dergraf (https://keybase.io/dergraf) on keybase.
- I have a public key whose fingerprint is 7787 72BD 8D9D B08C A545 0810 1E5A AA1C 889A 5E5A
To claim this, I am signing this object:
make_request(Fun, Args) when is_function(Fun), is_list(Args) -> | |
Ref = make_ref(), | |
Caller = {self(), Ref}, | |
ReqF = fun() -> | |
exit({Ref, apply(Fun, [Caller|Args])}) | |
end, | |
try spawn_monitor(ReqF) of | |
{_, MRef} -> | |
receive | |
Ref -> |
var connection = new tambur.Connection(MY_API_KEY, MY_APP_ID); | |
connection.ready = function() { | |
var stream = connection.get_stream("mystream"); | |
stream.onmessage = function(msg) { | |
/* do something fancy with the msg */ | |
}; | |
}; |
Tambur = tambur_client:new(MY_API_KEY, MY_APP_ID, SECRET). | |
Tambur:publish("test_stream", "some message"). |
-module(dbis_sample). | |
-export([i_am_a_function/1, pattern/1]). | |
%% this is a comment | |
i_am_a_function(Param) -> | |
Number = 10, | |
Atom = atom, | |
String = "string", | |
EmptyList = [], | |
List = [Param, Number, Atom, String, EmptyList], |
-module(convert_retain_plugin). | |
-behaviour(auth_on_publish_hook). | |
-export([auth_on_publish/6]). | |
auth_on_publish(_UserName, _SubscriberId, _QoS, _Topic, _Payload, _IsRetain) -> | |
{ok, [{retain, false}]}. |
-module(continuation_test). | |
-export([test/0]). | |
-define(SIZE, 100). | |
test() -> | |
ets:new(test, [named_table]), | |
[ets:insert(test, {I, I}) || I<- lists:seq(1,?SIZE)], | |
{Res, Cont} = ets:match_object(test, {'_', '_'}, 10), | |
L = [p(R) || R <- Res], | |
c(Cont, L). |
-module(kdtree). | |
-export([new/1, search/2, distance/2, test/0, test/3]). | |
new([]) -> []; | |
new(PointList) -> | |
K = size(lists:nth(1, PointList)), | |
kdtree(K, PointList, 0). | |
kdtree(_, [], _) -> []; | |
kdtree(K, PointList, Depth) -> |
I hereby claim:
To claim this, I am signing this object:
require "auth/auth_commons" | |
-- In order to use this Lua plugin your webhook must return a JSON Object containing | |
-- the following properties: | |
-- | |
-- - passhash: STRING (bcrypt) | |
-- - publish_acl: [ACL] (Array of ACL JSON Objects) | |
-- - subscribe_acl: [ACL] (Array of ACL JSON Objects) | |
-- | |
-- The JSON array passed as publish/subscribe ACL contains the ACL objects topic |
Secure Sockets Layer | |
TLSv1.2 Record Layer: Handshake Protocol: Client Hello | |
Content Type: Handshake (22) | |
Version: TLS 1.2 (0x0303) | |
Length: 99 | |
Handshake Protocol: Client Hello | |
Handshake Type: Client Hello (1) | |
Length: 95 | |
Version: TLS 1.2 (0x0303) | |
Random |