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
| repeat = 10 | |
| microseconds = 1_000_000 | |
| max_concurrency = System.schedulers_online() | |
| test_func = fn -> :timer.tc(PerfectNumbers, :aliquot_sum, [33_550_335]) |> elem(0) end | |
| recompile && Stream.repeatedly(fn -> test_func end) |> Task.async_stream(fn fun -> fun.() end, timeout: :infinity, ordered: false, max_concurrency: max_concurrency) |> Stream.map(fn {:ok, r} -> r end) |> Enum.take(repeat) |> then(&(Enum.sum(&1) / repeat) / microseconds) |
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
| # oh-my-zsh + nerd font + fira code + LSD Deluxe | |
| FROM aifrak/oh-my-zsh:0.3.2 AS oh-my-zsh | |
| FROM build AS build-dev | |
| ARG APP_USER_ZSH=$APP_USER_HOME/.oh-my-zsh | |
| ARG APP_USER_ZSH_CUSTOM=$APP_USER_ZSH/custom | |
| # zsh | |
| COPY --from=oh-my-zsh /bin/rzsh /bin/zsh /bin/zsh5 /bin/ | |
| COPY --from=oh-my-zsh /usr/bin/zsh /usr/bin/zsh |
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/sh | |
| # ------------------- General ------------------ # | |
| # Settings | |
| code --install-extension editorconfig.editorconfig | |
| code --install-extension PeterSchmalfeldt.explorer-exclude | |
| # AI Code Assistants | |
| code --install-extension Continue.continue |
NewerOlder