Skip to content

Instantly share code, notes, and snippets.

@mworrell
mworrell / parse_xlsx.erl
Created July 19, 2024 09:56
Rudimentary XLSX parser in Erlang
-module(parse_xlsx).
-export([
parse_file/1,
fetch_worksheet/1
]).
parse_file(File) ->
case fetch_worksheet(File) of
{ok, #{ worksheet := notfound }} ->
@mworrell
mworrell / m_omdb.erl
Last active May 5, 2022 07:53
Zotonic 1.0 - Template model for the OMDB movie database - source code to accompany the documentation
-module(m_omdb).
-behaviour(zotonic_model).
-export([
m_get/3
]).
-include_lib("zotonic_core/include/zotonic.hrl").
-define(API_URL, "http://www.omdbapi.com/?").
### Keybase proof
I hereby claim:
* I am mworrell on github.
* I am mworrell (https://keybase.io/mworrell) on keybase.
* I have a public key whose fingerprint is 84AD 59ED C785 392C B456 1465 E093 EF8D 579F 717C
To claim this, I am signing this object: