Skip to content

Instantly share code, notes, and snippets.

Avatar

Mariano Guerra marianoguerra

View GitHub Profile
View keybase.md

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 Aug 15, 2018
OTP exml to md translator
View appup.md

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
riak_core_lite metadata refactor notes
View README.md

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
Draft of BEAM interoperability topics
View DocumentationStorageFormat.md
@marianoguerra
marianoguerra / Dockerfile
Created Feb 27, 2018
ubuntu:17.10 erlang 20.2
View Dockerfile
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 Dec 31, 2017
First attempts at using lasp
View lasp_example.erl
{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 Jul 30, 2017
Erlang/BEAM Annual Survey Draft
View survey.rst

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 Mar 6, 2017
React hello world dependencies
View dep-tree.rst
$ 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 Oct 22, 2016
List of things to compare between current and new doc style
View README.rst
You can’t perform that action at this time.