Skip to content

Instantly share code, notes, and snippets.

View manpages's full-sized avatar

Jonn Mostovoy manpages

View GitHub Profile
@manpages
manpages / monocled.md
Last active December 25, 2015 03:29 — forked from anonymous/monocled.md
*-remover                       *-remover
backpack                        backpack
flash drive                     flash drive
roll                            roll
plans                           plans
origin paste                    origin paste
gel                             gel
apple                           ale
army                            army
@manpages
manpages / mo.erl
Created July 8, 2012 07:44 — forked from dmitriid/mo.erl
Parse out Mod, Func, Name from function type spec
%% Consider
%% mod:func([A],{A,B},list(), any(), some_type({A,list(),B})) -> ok | error.
%%
%% Start from the beginning. Scan each character
%%
%% 1. Once we hit ":", we've got our module name, start looking for function
%% name.
%% 2. Once we hit "(", we've got our method name, start looking for arguments
%% 3. Arguments are a bit trickier
%% 3.1 If we encounter a "{", "[", "(" we don't care about anything