Skip to content

Instantly share code, notes, and snippets.

@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 / queue.txt
Created May 19, 2016 20:40
Paper Queue as of 19-05-2016
10-Deadlock Avoidance for Streaming Computations with Filtering.pdf
10-EventScript: An Event-Processing Language Based on Regular Expressions with Actions.pdf
10-hancock-language-data-streams.pdf
11-Cayuga A General Purpose Event Monitoring System.pdf
11-Finding Frequent Items in Data Streams.pdf
11-Optimization of Sequence Queries in Database Systems.pdf
12-Chord: A Scalable Peer-to-peer Lookup Service for Internet Applications.pdf
12-Distributed Event Stream Processing with Non-deterministic Finite Automata.pdf
12-High-Performance Complex Event Processing over XML Streams.pdf
12-LSM-trie: An LSM-tree-based Ultra-Large Key-Value Store for Small Data.pdf
@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
@marianoguerra
marianoguerra / error.erl
Last active October 9, 2016 19:23 — forked from anonymous/error.erl
Standard Error Format for Erlang
-record(error, {type, ctx}).
% TODO: macros to create error adding module, line and function to context
% TODO: line(#error{}), module(#error{}), function(#error{}) to return those fields if defined or undefined if not
% TODO: pretty printer
new(Type) -> new(Type, #{}).
new(Type, Ctx) -> #error{type=Type, ctx=Ctx}.
@marianoguerra
marianoguerra / rebar.config
Created February 22, 2016 17:56
rebar3_cuttlefish problems
{erl_opts, [debug_info, {parse_transform, lager_transform}]}.
{deps, [
{pbkdf2, {git, "git://github.com/marianoguerra/erlang-pbkdf2-no-history", {branch, "master"}}},
{exometer_core, {git, "git://github.com/basho/exometer_core.git", {branch, "th/correct-dependencies"}}},
{riak_core, {git, "git://github.com/basho/riak_core", {branch, "develop"}}}
]}.
{relx, [{release, { ricor , "0.1.0"},
[ricor,
@marianoguerra
marianoguerra / README.rst
Last active May 22, 2016 21:42
Easy Way to test Sonic PI build scripts on clean ubuntu 16.10

this is an easy way to test that the scripts to build sonic py on master work, in requires vagrant to be installed:

vagrant init ubuntu/xenial64; vagrant up --provider virtualbox
vagrant ssh -c "git clone https://github.com/samaaron/sonic-pi.git; cd sonic-pi/app/gui/qt; ./build-ubuntu-app"

as it is the script will ask for confirmation to install the packages, you can just hit enter to install them, adding -y to apt-get install would do it automatically but I don't know if it's the intended way.

also it may ask for confirmation to add ssl certs when cloning supercolider.

when setting {include_src, false} on relx section on rebar.config and running:

rebar3 release

sources are included

when doing rebar3 as prod release

they are not

@marianoguerra
marianoguerra / linkode
Last active December 23, 2015 10:39
Small utility to create linkodes on the command line, it integrates nicely with vim (visual select and then <>! linkode -t python -b)
#!/usr/bin/env python
"""linkode utility"""
from __future__ import print_function
import sys
import argparse
import requests
import webbrowser
def parse_args():