This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mix.install([{:req, "~> 0.5"}]) | |
defmodule OrdersParser do | |
defmacrop drop(input, str) do | |
quote do | |
<<unquote(str), rest::binary>> = unquote(input) | |
rest | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APPIMAGE_FILE=$(realpath $1) | |
[[ $APPIMAGE_FILE == *.AppImage ]] || (echo "File doesn't have AppImage extension" && exit 1) | |
TEMPDIR=$(mktemp -d) | |
function unpack_and_install() { | |
$APPIMAGE_FILE --appimage-extract 'usr/share/icons/*' > /dev/null |