Skip to content

Instantly share code, notes, and snippets.

@dominicletz
dominicletz / wx.ex
Created October 5, 2020 12:35
wx.ex
defmodule Wx do
@vsn "0.0.2"
@author "Onorio Catenacci"
@author "Dominic Letz"
@last_revision_date "22 May 2019"
@moduledoc """
Elixir version of the constants found in the wx.hrl file
"""
import Bitwise
require Record
@dominicletz
dominicletz / find_fragmentation.erl
Created June 2, 2020 16:21
Erlang script to show used vs. allocated carrier sizes to find impact of memory fragmentation
f().
Str = fun(X) -> io_lib:format("~p", [X]) end.
Percent = fun
(A, 0) -> "100%";
(A, B) -> [Str(round(100*A/B)), "%"]
end.
Get = fun
@dominicletz
dominicletz / ci.yml
Last active March 25, 2021 14:51
Activate msys2 64bit on windows-latest github actions target
name: "CI"
on: ["push", "pull_request"]
jobs:
build_and_test:
name: "Run tests and build artifacts"
strategy:
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
go: ["1.14.x"]