Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am marianoguerra on github.
  • I am marianoguerra (https://keybase.io/marianoguerra) on keybase.
  • I have a public key ASAAz1O8hmNDYf7GWHlLbRsEhxrHNovElDRwYHaNxkMQogo

To claim this, I am signing this object:

@marianoguerra
marianoguerra / appup.md
Last active August 15, 2018 23:29
OTP exml to md translator

appup

Application upgrade file

The application upgrade file defines how an application is upgraded or downgraded in a running system.

This file is used by the functions in

@marianoguerra
marianoguerra / README.md
Created May 27, 2018 18:53
riak_core_lite metadata refactor notes

Files to delete:

git rm src/hashtree.erl
git rm src/hashtree_tree.erl
git rm src/riak_core_aae_vnode.erl
git rm src/riak_core_broadcast.erl
git rm src/riak_core_broadcast_handler.erl
git rm src/riak_core_entropy_info.erl
git rm src/riak_core_entropy_manager.erl
@marianoguerra
marianoguerra / DocumentationStorageFormat.md
Last active May 27, 2018 10:59
Draft of BEAM interoperability topics
@marianoguerra
marianoguerra / Dockerfile
Created February 27, 2018 13:16
ubuntu:17.10 erlang 20.2
FROM ubuntu:17.10
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y --no-install-recommends wget build-essential git ca-certificates && \
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
apt-get update && \
@marianoguerra
marianoguerra / lasp_example.erl
Created December 31, 2017 16:57
First attempts at using lasp
{ok, {MapId, _, _, _}} = lasp:declare({<<"mymap">>, {state_awmap, [state_mvregister]}}, {state_awmap, [state_mvregister]}).
K1 = <<"key1">>.
V1 = #{what => i_am_a_gmap_value, thing => 42}.
{ok, {MapId1, _, _, _}} = lasp:update(MapId, {apply, K1, {set, erlang:unique_integer([monotonic, positive]), V1}}, self()).
{ok, Res1} = lasp:query(MapId1).
Res1.
% {ok,[{<<"key1">>, {set, ...#{thing => 42,what => i_am_a_gmap_value} ... }}]}
@marianoguerra
marianoguerra / survey.rst
Last active July 30, 2017 14:59
Erlang/BEAM Annual Survey Draft

Which languages of the BEAM do you use?

  • Erlang
  • Elixir
  • Lisp Flavoured Erlang (LFE)
  • Alpaca
  • Efene
  • Erlog
  • Joxa
  • Luerl
@marianoguerra
marianoguerra / dep-tree.rst
Created March 6, 2017 12:40
React hello world dependencies
$ create-react-app hello-world

Creating a new React app in hello-world.

Installing packages. This might take a couple minutes. Installing react, react-dom, and react-scripts...

:

@marianoguerra
marianoguerra / README.rst
Last active October 22, 2016 00:18
List of things to compare between current and new doc style